-
Notifications
You must be signed in to change notification settings - Fork 27.5k
ng-repeat behaves weirdly if angular is accidentally loaded twice or more #5587
Comments
This can be fixed but in many manners. Would be good to know what's the best way to approach this. |
I think that we should have a check in angular that would prevent full angular.js being loaded more than once. The check should take into account that it's ok to load angular-loader.js once before loading angular.js. |
PRs Welcome! |
Makes sense to me, but I'm not an expert on the innards of the library. On Monday, January 6, 2014, Igor Minar wrote:
|
In a way is the goal be to make the loaded JS 'more' in line with a singleton pattern? Are there cases someone might actually need to load the JS file twice? (I can't think of a use case but maybe someone has one?) If that's the case, would mimiking a particular behavior be necessary as well? |
The app below demonstrates how ng-repeat will square, cube, etc. the number of items in a table depending on how many times angular.js is loaded in the page.
The text was updated successfully, but these errors were encountered: