The tag has no usage guidance, but it has a tag wiki.

learn more… | top users | synonyms

1
vote
1answer
36 views

Binding with service variable using ControllerAs syntax without $scope?

I'm familiarizing myself with controllerAs syntax in AngularJS, and I've come to a problem when I need to do a simple binding to a service variable. Typically a $scope.$watch or $scope.$on would do, ...
1
vote
0answers
72 views

Angularjs - Access parent controller without using $scope and using controllerAs

I needed a way to access the parent scope of a controller without having to inject $scope to do so. The reason behind this is that I'm building a SPA and I wanted to apply a class to the body element ...
0
votes
0answers
20 views

How to unit test variables on the parent scope when using controllerAs syntax in Angular?

I'm trying to unit test a controller in which I'm using Angular's controllerAs syntax. I also use this to access variables in the parent scope. For example, if the parent controller is called parent, ...
0
votes
0answers
25 views

Bind to ControllerAs Variables in Directives

Right, not an easy one to explain but I'll do my best. I'm trying to make a directive that watches/uses data from an outer-directive (both currently elements). If I don't use controllerAs syntax, ...