From 1e890863e55d3aa407a8853a9782ae917feaf302 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Sun, 10 Jul 2011 19:29:46 +0200 Subject: docs:compile: Just fixing some typos in the docs --- src/Compiler.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/Compiler.js b/src/Compiler.js index f8d1e0f0..3036d5d6 100644 --- a/src/Compiler.js +++ b/src/Compiler.js @@ -95,16 +95,16 @@ Template.prototype = { * that is a DOM clone of the original template. *
- //copile the entire window.document and give me the scope bound to this template.
- var rootSscope = angular.compile(window.document)();
+ // compile the entire window.document and give me the scope bound to this template.
+ var rootScope = angular.compile(window.document)();
- //compile a piece of html
- var rootScope2 = angular.compile(''click me')();
+ // compile a piece of html
+ var rootScope2 = angular.compile('click me')();
- //compile a piece of html and retain reference to both the dom and scope
+ // compile a piece of html and retain reference to both the dom and scope
var template = angular.element('click me'),
- scoope = angular.compile(view)();
- //at this point template was transformed into a view
+ scope = angular.compile(template)();
+ // at this point template was transformed into a view
*
*
@@ -175,7 +175,7 @@ Template.prototype = {
* directives processing state. The compiler will process directives only when directives set to
* true.
*
- * For information on how the compiler works, see the
+ * For information on how the compiler works, see the
* {@link guide/dev_guide.compiler Angular HTML Compiler} section of the Developer Guide.
*/
function Compiler(markup, attrMarkup, directives, widgets){
--
cgit v1.2.3