but this will remove the first time 2 items. after this it will remove multiple items from scope. (from db they will not be removed)
I have the feeling that the controller gets instantiated multiple times.
I know controllers are not singletons and its possible if you do something false.
But i did look up my whole code and i don’t have added it 2 times. I add the controller at stateProvider
And i start my App with bootstrap because i need to wait for plugins to be loaded.
I did create a plunker but there i don’t have the problem -.-
angular is only included once im dont using bundle atm.
controller is only used by one view.
but what i just have found:
when i wait long enough it will only be called once.
Is it possible when the digest cycle is not done and i do an action that its triggered multiple time(method)?
btw i have around 191 watches in my views. is that too much?
well everything that is bind to html like with ng-bind or {{var}} will have its own watcher.
and i do not use watchers explicit they are all form the binding.
and i just have a normal list with picture and text binded.