diff options
| author | Misko Hevery | 2012-02-24 16:14:44 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-06-02 16:02:05 -0700 |
| commit | 6933fb7924cd1ef01e9259c53bf76023a87d61aa (patch) | |
| tree | 4af8ab1e41149d6ba1af2a76c34523575797ab1d /docs/content/guide/dev_guide.bootstrap.manual_bootstrap.ngdoc | |
| parent | f5afcca99dcf49f3382a5e69d97030f63113af6e (diff) | |
| download | angular.js-6933fb7924cd1ef01e9259c53bf76023a87d61aa.tar.bz2 | |
docs(bootstrap): rewritten bootstrap guide
Diffstat (limited to 'docs/content/guide/dev_guide.bootstrap.manual_bootstrap.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.bootstrap.manual_bootstrap.ngdoc | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/docs/content/guide/dev_guide.bootstrap.manual_bootstrap.ngdoc b/docs/content/guide/dev_guide.bootstrap.manual_bootstrap.ngdoc deleted file mode 100644 index c32c2c1a..00000000 --- a/docs/content/guide/dev_guide.bootstrap.manual_bootstrap.ngdoc +++ /dev/null @@ -1,49 +0,0 @@ -@ngdoc overview -@name Developer Guide: Initializing Angular: Manual Initialization -@description - -In the vast majority of cases you'll want to let Angular handle initialization automatically. -If, however, you need to delay Angular from managing the page right after the DOMContentLoaded -event fires, you'll need to control this initialization manually. - -To initialize Angular -- after you've done your own special-purpose initialization -- just call -the {@link api/angular.bootstrap bootstrap()} function with the HTML container node that you want -Angular to manage. In automatic initialization you'd do this by adding the `ngApp` attribute to -the same node. Now, you won't use `ngApp` anywhere in your document. - -To show the contrast of manual vs. automatic initialization, this automatic method: - -<pre> -<!doctype html> -<html ng-app> -<head> - <script src="http://code.angularjs.org/angular.js"></script> -... -</pre - -is the same as this manual method: - -<pre> -<!doctype html> -<html> -<head> - <script src="http://code.angularjs.org/angular.js"></script> - <script> - angular.element(document).ready(function() { - angular.bootstrap(document); - }); - </script> -</head> -... -</pre> - - -## Related Topics - -* {@link dev_guide.bootstrap Initializing Angular} -* {@link dev_guide.bootstrap.auto_bootstrap Automatic Initialization} -* {@link dev_guide.compiler Angular HTML compiler} - -## Related API - -{@link api/angular.module.ng.$compile Compiler API} |
