4 ms·
It's when Angular has to play with something else, some other library or plugin. And the more Angular Modules you outsource, the hope is that you're all using D
by thenerdfiles 12y ago
It's when Angular has to play with something else, some other library or plugin. And the more Angular Modules you outsource, the hope is that you're all using Directives and Promises rigorously. It gives templates a lot more say in terms of complexity.
Some days my vim looks like (mostly Directives):
----------------------------
| | | | | |
| | | |-----------|
| | | | | |
| | | |-----------|
| | | | | |
----------------------------
And I'm thinking: Oh god what's happening, is this the abyss?
- joevandyk 12y agoYou can put more than one directive in a file. If it gets too unweildy, separate stuff into separate files based on functionality (ordering.js, login.js, shared_ui.js, etc)