Skip to content

Commit 1e89086

Browse files
committed
docs:compile: Just fixing some typos in the docs
1 parent 76a5001 commit 1e89086

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Compiler.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ Template.prototype = {
9595
* that is a DOM clone of the original template.
9696
*
9797
<pre>
98-
//copile the entire window.document and give me the scope bound to this template.
99-
var rootSscope = angular.compile(window.document)();
98+
// compile the entire window.document and give me the scope bound to this template.
99+
var rootScope = angular.compile(window.document)();
100100
101-
//compile a piece of html
102-
var rootScope2 = angular.compile(''<div ng:click="clicked = true">click me</div>')();
101+
// compile a piece of html
102+
var rootScope2 = angular.compile('<div ng:click="clicked = true">click me</div>')();
103103
104-
//compile a piece of html and retain reference to both the dom and scope
104+
// compile a piece of html and retain reference to both the dom and scope
105105
var template = angular.element('<div ng:click="clicked = true">click me</div>'),
106-
scoope = angular.compile(view)();
107-
//at this point template was transformed into a view
106+
scope = angular.compile(template)();
107+
// at this point template was transformed into a view
108108
</pre>
109109
*
110110
*
@@ -175,7 +175,7 @@ Template.prototype = {
175175
* directives processing state. The compiler will process directives only when directives set to
176176
* true.
177177
*
178-
* For information on how the compiler works, see the
178+
* For information on how the compiler works, see the
179179
* {@link guide/dev_guide.compiler Angular HTML Compiler} section of the Developer Guide.
180180
*/
181181
function Compiler(markup, attrMarkup, directives, widgets){

0 commit comments

Comments
 (0)