diff options
| author | Vojta Jina | 2011-11-11 17:15:22 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-11-14 20:31:19 -0800 | 
| commit | acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c (patch) | |
| tree | 2483609ada03b9e6ff477596f0402dc24fdd7518 /src/service/compiler.js | |
| parent | 035c7510763a9742294d51ba55aea0b6dd08ea58 (diff) | |
| download | angular.js-acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c.tar.bz2 | |
style(docs): make jslint happy - fix some warnings
Diffstat (limited to 'src/service/compiler.js')
| -rw-r--r-- | src/service/compiler.js | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/service/compiler.js b/src/service/compiler.js index 56ec82e2..781d7b3a 100644 --- a/src/service/compiler.js +++ b/src/service/compiler.js @@ -79,12 +79,12 @@ function $CompileProvider(){        /**         * @ngdoc function -       * @name angular.module.NG.$compile +       * @name angular.module.ng.$compile         * @function         *         * @description         * Compiles a piece of HTML string or DOM into a template and produces a template function, which -       * can then be used to link {@link angular.module.NG.$rootScope.Scope scope} and the template together. +       * can then be used to link {@link angular.module.ng.$rootScope.Scope scope} and the template together.         *         * The compilation is a process of walking the DOM tree and trying to match DOM elements to         * {@link angular.markup markup}, {@link angular.attrMarkup attrMarkup}, @@ -117,7 +117,7 @@ function $CompileProvider(){         * @returns {function(scope[, cloneAttachFn])} a template function which is used to bind template         * (a DOM element/tree) to a scope. Where:         * -       *  * `scope` - A {@link angular.module.NG.$rootScope.Scope Scope} to bind to. +       *  * `scope` - A {@link angular.module.ng.$rootScope.Scope Scope} to bind to.         *  * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the         *               `template` and call the `cloneAttachFn` function allowing the caller to attach the         *               cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is @@ -136,14 +136,14 @@ function $CompileProvider(){         * bring the view to life, the scope needs to run through a $digest phase which typically is done by         * Angular automatically, except for the case when an application is being         * {@link guide/dev_guide.bootstrap.manual_bootstrap} manually bootstrapped, in which case the -       * $digest phase must be invoked by calling {@link angular.module.NG.$rootScope.Scope#$apply}. +       * $digest phase must be invoked by calling {@link angular.module.ng.$rootScope.Scope#$apply}.         *         * If you need access to the bound view, there are two ways to do it:         *         * - If you are not asking the linking function to clone the template, create the DOM element(s)         *   before you send them to the compiler and keep this reference around.         *   <pre> -       *     var scope = angular.injector('NG')(function($rootScope, $compile){ +       *     var scope = angular.injector('ng')(function($rootScope, $compile){         *       var element = $compile('<p>{{total}}</p>')($rootScope);         *     });         *   </pre> | 
