Hello,

I have a kind of tricky question and hope someone could help. 

Story: 
A code was inherited and I want to upgrade Angular JS from 1.1.5 to 1.3.4. 
Due to the extensive usage of jquery on the UI, there is a segment where 
the angular.min.js library is being dynamically appended to the document, 
meaning the library is being initialized twice.

Now in 1.3.4, Angular just stops working and an error is received: *Error: 
[ng:btstrpd] App Already Bootstrapped with this Element*
The problem is, of course, that we are trying to initialize Angular 
although it is initialized already.
The source of the problem comes from a change in the *bootstrap* method - a 
check is added whether Angular is already initialized:

*if (element.injector()) {*
*      var tag = (element[0] === document) ? 'document' : 
startingTag(element);*
*      throw ngMinErr('btstrpd', "App Already Bootstrapped with this 
Element '{0}'", tag);*
* }*

My question is: Can I somehow bypass this check? I really don`t want to 
modify the library itself...Refactoring my code is not an option at this 
point, unfortunately...

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to