Is it safe to say that you cannot test an anonymous controller? On Saturday, February 21, 2015 at 6:11:30 AM UTC-7, Chris Hokamp wrote: > > This blog post [1] touches on a good solution - write a separate > controller and use the controller: property of the directive to use it. It > keeps your tests cleaner because you can unit test the controller logic > separately without needing to create an element. > > [1] > http://teropa.info/blog/2014/10/24/how-ive-improved-my-angular-apps-by-banning-ng-controller.html
-- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
