Implementing Controller-As Using A Directive In AngularJS 1.0.8

added by JavaScript Kicks
11/4/2014 3:54:06 PM

282 Views

After implementing the "Track-By" feature of AngularJS 1.2 using a directive in AngularJS 1.0.8, I wanted to see if I could do the same thing for the relatively new "Controller-As" feature. The "controller-as" syntax makes the controller instances available in the View-Model using the provided key. It can do this in a variety of places (including routes and directive configurations); but, for this experiment, I'm only targeting the main, ngController directive.


0 comments