4 ms·
Todd Motto's angular style guide [1] has been one of the most helpful to me. It's always good to read multiple style guides and cherry-pick what works best for
by mck- 12y ago
Todd Motto's angular style guide [1] has been one of the most helpful to me. It's always good to read multiple style guides and cherry-pick what works best for you :)
[1]: https://github.com/toddmotto/angularjs-styleguide https://github.com/toddmotto/angularjs-styleguide
- Bahamut 12y agoThe recommendations in the module section are pretty awful - I'd avoid doing so, and every other expert in the community I've spoken to also disagree with that suggestion of using global functions wrapped in an IIFE to prevent it from being published on window, which seems to exclusively come out of Google.
- jackweirdy 12y agoWhat does IIFE stand for? From your I'm guessing it's an immediately evaluating function - but I can't figure the initialism out
- JamesSwift 12y agoCorrect. http://en.wikipedia.org/wiki/Immediately-invoked_function_expression http://en.wikipedia.org/wiki/Immediately-invoked_function_ex...
- Kiro 12y agoWhat's so bad about it?
- creatio 12y agoWhat should be used instead?