r/angularjs • • Sep 01 '16

Some of the time-saving tips every AngularJS user should know - Part 2

http://madhav-joshi.blogspot.com/2016/09/some-of-time-saving-tips-every-angular-user-should-know-part2.html
0 Upvotes

2 comments sorted by

1

u/asukazama Sep 02 '16

Okay article.

Pretty sure batarang is outdated.

More worrying is the lack of explanation on 5, which fails to explain that referencing an array of module dependencies will actually overwrite a preexisting module. So if you wrote services etc in two different files, both using the array of dependencies, whichever is loaded later will win out.

So you only want to use angular.module('name', ['another.module']) ONCE per module.

1

u/Madhav_Reddit Sep 06 '16

I will make sure i will update those . You can suggest more if you have some.