-
Notifications
You must be signed in to change notification settings - Fork 27.4k
$compile: "the root of the template always gets a new scope..." What is it about? #15109
Comments
I think this is a relic of the past and it basically refers to the root element of the application (which gets attached to It was introduced back in 4804c83 (v1.0.0-rc.2). At that time, it seems that the HTML inside A few quotes from the (then) docs: About compilation:
About templates:
Iff my analysis is correct, we can get rid of that sentence altogether as it is confusing (and doesn't seem related to directives anyway). But I am just guessing here - there is always a chance it means something else... |
I think we can remove it, as it doesn't really make anything clearer. |
In the docs for $compile, we can read the following:
I can't understand the last sentence. Does it mean that even if you set
scope
tofalse
in the DDO, your directive will create a new scope if it has a template? Then, it's not true: see this plunk. Does this sentence mean something different?The text was updated successfully, but these errors were encountered: