The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
22 views

How to access the $ngModelController from inside the Controller without a Form and without a Directive

Maybe it's a rookie mistake, but I can't seem to access the $scope.model's $ngModelController so I can grab the $viewValue from it. I have an input without a form (im using ui-mask directive): ...
0
votes
2answers
21 views

Load-time exception handling in AngularJS

I need to execute a function which is defined in controller in load-time, in order to gain json data from another place right after page is loaded. I've tried to call the func immediately within ...
1
vote
1answer
40 views

AngularJS Controller $scope not displaying variable

I am new to AngularJs. In app.js I have the following angular.module('module1', ['module2']) .config(function($routeProvider) { $routeProvider .when('/', { ...
0
votes
0answers
37 views

Share data between controllers using permalinks?

I would like to share data between controllers using permalinks, rather than signals or factories. Given a single page application, with three controllers (Ctrl1, Ctrl2, Ctrl3), and a predefined ...
0
votes
4answers
47 views

Cannot get simple push/splicing of array to work - AngularJS

Please have a look at the following Plunker project. I want to keep a list of items in a service which multiple controllers can access. In this example when you select a surname it will come up in ...
0
votes
3answers
76 views

$watch not working on variable from other controller?

I have one controller which displays a checklist, and stores the selection in an array. My other controller runs an $http.get on the array from the first controller. How do I set a $watch so that ...
1
vote
1answer
122 views

Sharing data between AngularJS controllers? [duplicate]

How do I store the items I've selected in a checkbox with other controllers? My attempt (see the plnkr for views): script.js (controllers) var myApp = angular.module('myApp', []); ...
2
votes
3answers
314 views

Simple Angular $routeProvider resolve test. What is wrong with this code?

I have created a simple Angular JS $routeProvider resolve test application. It gives the following error: Error: Unknown provider: dataProvider <- data I would appreciate it if someone could ...
0
votes
1answer
51 views

Checking for data uniqueness in AngularFire

Using AngularFire, I want to add an object to my angularFireCollection ONLY if the "name" is unique. My data is structured like so: - ClientList - dsk32923k <-Random unique ID created by ...
0
votes
1answer
167 views

Angular JS delay controller and directive initialization until data is returned from server

My AngularJS app requires some metadata from the server before it can initialize the controller and a handful of directives. I have a service to return the data but have been unable to get the ...
0
votes
1answer
36 views

Sharing a variable between controllers through a service

Here is my plunker: From what I understand, since the Service Variable being shared is an object, the object that gets loaded to the service by controller 1 should be plainly seen by controller2 ...
1
vote
1answer
50 views

What problems would I run into if I make all Data avalable to all Controllers?

My AngularJS CRUD application processes it's information over a WebSocket Server. (This was mainly so that updates from one user would get automatically pushed to all users without the need for ...
0
votes
2answers
78 views

Angularjs: models binding

I have directive which dynamically creates input tags. I need to get values of created inputs on change event. Instead of it the name attribute on $scope argument in the controller is undefined. How ...
1
vote
2answers
252 views

Angular communication between controllers and directives

I have this piece of code which allows a user to leave comments on a list of items. I created a directive and listen to keydown in order to let the user submit a comment if keyCode == 13. Not sure ...
1
vote
2answers
85 views

How would I re-instantiate an AngularJS controller after a change in data?

I have looked, and assume this is simple, but just couldn't figure out the API documentation for this. Assume I have a controller that pulls data when first called (I'm leaving out a ton, of course): ...

1 2
15 30 50 per page