8000 docs(ngNonBindable): improve description · olostan/angular.js@977b482 · GitHub
[go: up one dir, main page]

Skip to content

Commit 977b482

Browse files
docs(ngNonBindable): improve description
Closes angular#4391
1 parent e79a20e commit 977b482

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ng/directive/ngNonBindable.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77 A07F
* @priority 1000
88
*
99
* @description
10-
* Sometimes it is necessary to write code which looks like bindings but which should be left alone
11-
* by angular. Use `ngNonBindable` to make angular ignore a chunk of HTML.
10+
* The `ngNonBindable` directive tells Angular not to compile or bind the contents of the current
11+
* DOM element. This is useful if the element contains what appears to be Angular directives and
12+
* bindings but which should be ignored by Angular. This could be the case if you have a site that
13+
* displays snippets of code. for instance.
1214
*
1315
* @element ANY
1416
*
1517
* @example
16-
* In this example there are two location where a simple binding (`{{}}`) is present, but the one
17-
* wrapped in `ngNonBindable` is left alone.
18+
* In this example there are two locations where a simple interpolation binding (`{{}}`) is present,
19+
* but the one wrapped in `ngNonBindable` is left alone.
1820
*
1921
* @example
2022
<doc:example>

0 commit comments

Comments
 (0)
0