mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 12:05:46 +08:00
doc(guide): clean up broken links
This commit is contained in:
@@ -49,14 +49,14 @@ initialization.
|
||||
# Automatic Initialization
|
||||
|
||||
Angular initializes automatically upon `DOMContentLoaded` event, at which point angular looks for
|
||||
the {@link api/angular.module.ng.$compileProvider.directive.ng:app `ng-app`} directive which
|
||||
the {@link api/angular.module.ng.$compileProvider.directive.ngApp `ng-app`} directive which
|
||||
designates your application root. If {@link
|
||||
api/angular.module.ng.$compileProvider.directive.ng:app `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.ng:app
|
||||
* compile the DOM treating the {@link api/angular.module.ng.$compileProvider.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.
|
||||
|
||||
@@ -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.ng:app ng:app} directive.
|
||||
api/angular.module.ng.$compileProvider.directive.ngApp ng-app} directive.
|
||||
|
||||
<pre>
|
||||
<!doctype html>
|
||||
|
||||
Reference in New Issue
Block a user