From 30252a05049c557cf3c05cdf4a8d36fa9e4ab395 Mon Sep 17 00:00:00 2001 From: Kindy Lin Date: Sat, 7 Dec 2013 00:00:04 +0800 Subject: docs($compile): fix param name and improve example variable name Closes #5310 --- src/ng/compile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ng/compile.js') diff --git a/src/ng/compile.js b/src/ng/compile.js index 0af76a75..9b7d05aa 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -469,14 +469,14 @@ * example would not point to the clone, but rather to the original template that was cloned. In * this case, you can access the clone via the cloneAttachFn: *
- *     var templateHTML = angular.element('

{{total}}

'), + * var templateElement = angular.element('

{{total}}

'), * scope = ....; * - * var clonedElement = $compile(templateHTML)(scope, function(clonedElement, scope) { + * var clonedElement = $compile(templateElement)(scope, function(clonedElement, scope) { * //attach the clone to DOM document at the right place * }); * - * //now we have reference to the cloned DOM via `clone` + * //now we have reference to the cloned DOM via `clonedElement` *
* * @@ -865,7 +865,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { * @param {DOMElement=} $rootElement If the nodeList is the root of the compilation tree then * the rootElement must be set the jqLite collection of the compile root. This is * needed so that the jqLite collection items can be replaced with widgets. - * @param {number=} max directive priority + * @param {number=} maxPriority Max directive priority. * @returns {?function} A composite linking function of all of the matched directives or null. */ function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority, ignoreDirective, -- cgit v1.2.3