John Papa

Results 210 comments of John Papa

Use vm until it's not clear. Then use a more descriptive name. That's what I like.

Please add a style code for this too. See other examples. I think where you put this is fine, i dont see a section that fits it, but i do...

I want to get Pete Bacon Darwin's eyes on this too

I agree with you Pete ... especially in this > The only reason that I feel holds water is that using standard native JavaScript functions rather than Angular helpers allows...

$ is for angular services. yes, it should be avoided. If interested, make a PR.

probably near here https://github.com/johnpapa/angular-styleguide/tree/master/a1#style-y125

I've gone both ways with this where the module file imports all the things it needs and registers them, as @philmerrell showed. Then the other way of having each file...

i dont personally use ng-include anymore. i use a directive for even basic footers and headers. but its not a bad practice to use ng-include. might be worth adding to...

just a few stray thoughts on both sides, nd in between... ng-include is dirt simple. thats a big plus. also very obvious what it is doing. harder to test ,...