aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-09-15 21:51:50 +0100
committerPete Bacon Darwin2013-09-15 21:51:50 +0100
commitd241438d49c860e97ff34ce2c08f750462132fc2 (patch)
treefd1c8ae131c5369b700872cbbdfa8299b1c6bf13 /docs/content/guide
parent3328d33ed0b9a99649b682aad3c7b234d4f1d8ca (diff)
downloadangular.js-d241438d49c860e97ff34ce2c08f750462132fc2.tar.bz2
docs(guide/bootstrap): add info about deferred bootstrap
Diffstat (limited to 'docs/content/guide')
-rw-r--r--docs/content/guide/bootstrap.ngdoc15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/content/guide/bootstrap.ngdoc b/docs/content/guide/bootstrap.ngdoc
index 9fbe97ca..1b8856f4 100644
--- a/docs/content/guide/bootstrap.ngdoc
+++ b/docs/content/guide/bootstrap.ngdoc
@@ -111,3 +111,18 @@ This is the sequence that your code should follow:
2. Call {@link api/angular.bootstrap} to {@link compiler compile} the element into an
executable, bi-directionally bound application.
+
+## Deferred Bootstrap
+
+This features enables tools like Batarang and test runners to
+hook into angular's bootstrap process and sneak in more modules
+into the DI registry which can replace or augment DI services for
+the purpose of instrumentation or mocking out heavy dependencies.
+
+If `window.name` contains prefix `NG_DEFER_BOOTSTRAP!` when
+{@link api/angular.bootstrap} is called, the bootstrap process will be paused
+until `angular.resumeBootstrap()` is called.
+
+`angular.resumeBootstrap()` takes an optional array of modules that
+should be added to the original list of modules that the app was
+about to be bootstrapped with. \ No newline at end of file