diff options
| author | Igor Minar | 2012-06-11 23:49:24 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-06-12 00:10:18 -0700 |
| commit | f16150d5f1b20b3d633b4402095ea89baa4be042 (patch) | |
| tree | 9d5c570348264884174ecca52b958da7a821fcf8 /docs/content/guide/bootstrap.ngdoc | |
| parent | fc0b2b5715655a05cbb4c8e79969c95d7e7ce8b7 (diff) | |
| download | angular.js-f16150d5f1b20b3d633b4402095ea89baa4be042.tar.bz2 | |
docs(*): simplify doc urls
we now have two types of namespaces:
- true namespace: angular.* - used for all global apis
- virtual namespace: ng.*, ngMock.*, ... - used for all DI modules
the virual namespaces have services under the second namespace level (e.g. ng.)
and filters and directives prefixed with filter: and directive: respectively
(e.g. ng.filter:orderBy, ng.directive:ngRepeat)
this simplifies urls and makes them a lot shorter while still avoiding name collisions
Diffstat (limited to 'docs/content/guide/bootstrap.ngdoc')
| -rw-r--r-- | docs/content/guide/bootstrap.ngdoc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/content/guide/bootstrap.ngdoc b/docs/content/guide/bootstrap.ngdoc index b2c681b5..383aabf5 100644 --- a/docs/content/guide/bootstrap.ngdoc +++ b/docs/content/guide/bootstrap.ngdoc @@ -41,26 +41,26 @@ initialization. * If you chose to use the old style directive syntax `ng:` then include xml-namespace in `html` to make IE happy. (This is here for historical resons, and we no longer recomend use of `ng:`.) - + <html xmlns:ng="http://angularjs.org"> - - + + # Automatic Initialization Angular initializes automatically upon `DOMContentLoaded` event, at which point angular looks for -the {@link api/angular.module.ng.$compileProvider.directive.ngApp `ng-app`} directive which +the {@link api/ng.directive:ngApp `ng-app`} directive which designates your application root. If {@link -api/angular.module.ng.$compileProvider.directive.ngApp `ng-app`} directive is found then Angular +api/ng.directive:ngApp `ng-app`} directive is found then Angular will: * load the {@link guide/module module} associated with the directive. - * create the application {@link api/angular.module.AUTO.$injector injector} - * compile the DOM treating the {@link api/angular.module.ng.$compileProvider.directive.ngApp + * create the application {@link api/AUTO.$injector injector} + * compile the DOM treating the {@link api/ng.directive:ngApp `ng-app`} directive as the root of the compilation. This allows you to tell it to treat only a portion of the DOM as an Angular application. - + <pre> <!doctype html> <html ng-app="optionalModuleName"> @@ -82,7 +82,7 @@ or the need to perform an operation before the Angular compiles a page. Here is an example of manually initializing Angular. The example is equivalent to using the {@link -api/angular.module.ng.$compileProvider.directive.ngApp ng-app} directive. +api/ng.directive:ngApp ng-app} directive. <pre> <!doctype html> |
