diff options
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/src/Angular.js b/src/Angular.js index 1a90f8bc..90c7234a 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -1049,6 +1049,12 @@ function angularInit(element, bootstrap) {  function bootstrap(element, modules) {    var doBootstrap = function() {      element = jqLite(element); + +    if (element.injector()) { +      var tag = (element[0] === document) ? 'document' : startingTag(element); +      throw ngMinErr('btstrpd', "App Already Bootstrapped with this Element '{0}'", tag); +    } +      modules = modules || [];      modules.unshift(['$provide', function($provide) {        $provide.value('$rootElement', element); | 
