Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b6f3d40

Browse files
shairezpetebacondarwin
authored andcommitted
docs(guide/compiler): remove innacurate statement
The $compile service accepts string as a value and wraps it if needed, so this statement isn't correct, at least by the source code. Closes #6301
1 parent 774b2ad commit b6f3d40

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/content/guide/compiler.ngdoc

-4
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ by template data merge.
158158
It's important to note that Angular operates on DOM nodes rather than strings. Usually, you don't
159159
notice this restriction because when a page loads, the web browser parses HTML into the DOM automatically.
160160

161-
However it's important to keep this in mind when calling `$compile` yourself, because passing it a string
162-
will fail. Instead, use `angular.element` to convert a string to DOM before passing elements into
163-
Angular's `$compile` service.
164-
165161
HTML compilation happens in three phases:
166162

167163
1. {@link ng.$compile `$compile`} traverses the DOM and matches directives.

0 commit comments

Comments
 (0)