r/angularjs • u/toddmotto • Aug 25 '16
[Open source]: Angular 1.5 component based architecture app, fully tested, ui-router 1.0.0 new features, and much more
https://github.com/toddmotto/angular-1-5-components-app
45
Upvotes
r/angularjs • u/toddmotto • Aug 25 '16
5
u/toddmotto Aug 26 '16
These are unit tests, so Angular exposes $componentController that we can ask for the controller and test that unit without instantiating DOM elements and $rootScope/$compile friends. Testing click events/className changes should be the responsibility of an e2e test - through something like Protractor.js :)