2
votes
1answer
63 views

How do I assign an attribute to ng-controller in a directive's template in AngularJS?

I have a custom attribute directive (i.e., restrict: "A") and I want to pass two expressions (using {{...}}) into the directive as attributes. I want to pass these attributes into the directive's ...
0
votes
0answers
142 views

How to create nested views and controllers in AngularJS without using ng-controller in the attribute

I have an application wide router, where the routes specify the template and controller to instantiate while navigating: $routeProvider .when('/', { templateUrl: 'views/login.html', controller: ...