Questions tagged as 'angularjs-scope'

1
answer

Why do I create the properties in the wrong scope between parent and child controllers?

Good morning. The case is this, I have this html view: <!-- VISTA HOME/INDEX --> <div ng-controller="generalView" class="index"> <!-- as vm --> <div class="container-fluid mainContainer"> <div clas...
asked by 29.09.2016 / 16:11
1
answer

When updating a scope variable, update another with the same value Angular2

Good morning everyone. I have a method that we say does something like this: getAll(){ this.commonServices.getAllList() .subscribe( res => {...
asked by 09.03.2017 / 14:25
3
answers

Use driver without $ scope

angular.module('App') .config(function ($stateProvider) { $stateProvider .state('solicitud', { url: 'solicitud', controller: 'SolCtrl as sol', templateUrl: '/scri...
asked by 18.11.2016 / 08:28
1
answer

Driver in ANgularJS

This time I write because I have a problem in a small app of AngularJS and I am trying to connect to a controller with an example that I read in a book, but it is not showing me the variable $ scope that I declared in the controller . This is th...
asked by 24.03.2018 / 14:04
1
answer

I can not find my error in a project using Angularjs creating a directive type element

Good morning. I have a question in a project that I am doing, in which I use angularjs and html. What I have to do is basically create a directive type element that contains all the content in a table, which depends on an object in a controller,...
asked by 23.03.2017 / 01:52
1
answer

Use variable $ scope

I have a function where I obtain parameters from an API via $ http.post, the parameters that return are saved and printed inside the same request, however when I use them out the variable appears empty. $scope.gama = {}; factoryGamas.buscarGa...
asked by 28.11.2017 / 18:31
1
answer

Put $ scope data as input value to save it in database

I have a problem trying to pull a $ scope data and insert it as value in input. This value is determined from a select that is part of my form code. The select that determines is "Resource" and I put condition that if it is "Municipal" I pull...
asked by 20.02.2017 / 17:54
0
answers

How to create a directive with angularjs

I am testing interact.js v1.2.9 which is useful for drag and drop. I want to create a directive of AngularJS v1.6.4 to communicate with my controller and modify the scope, when I take my code to practice the objects that I am creating have probl...
asked by 12.11.2017 / 22:53
1
answer

if I pass a variable in $ scope to a service, if it is modified in the service, is it not modified in the controller?

Good morning, I am doing this procedure and I have a question, I am passing a series of paramentos to a service, that in the modification I modify those variables that go by parameter, then when entering in the controller, I do not see the ch...
asked by 23.04.2017 / 09:48
0
answers

AngularJS - save radion buttons information

I have a table that runs through a JSON with questions <tr ng-repeat="pregunta in preguntas" ng-if="pregunta.tipo.id === 3" class="table-pointer" > <td>{{pregunta.pregunta.nombre}} ({{pregunta.pregunta.porcentaje}}%)</td>...
asked by 05.10.2018 / 16:38