fix(docs-bootstrap): Removed injector from bootstrapped docs samples

This is necessary to make e2e tests pass for implementing #3411. At present, the docs are violating the rule being enforced by double-bootstrap prevention.
This commit is contained in:
Jeff Cross
2013-08-02 09:21:33 -07:00
parent 61cb4085d4
commit 0b114fd3e1
4 changed files with 17 additions and 2 deletions

View File

@@ -241,6 +241,7 @@ directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location',
embedRootScope.$destroy();
});
element.data('$injector', null);
angular.bootstrap(element, modules);
}
};