You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
We only pass the isolate scope, if the isolate directive has a template, otherwise the child elements do not belong to the isolate directive.
Like I said, I don't know why this is so (it seems counter-intuitive), but it is like that since (almost) forever. Anyone knows (or can find out) what was the reasoning behind this change ?
Afaik, isolated scopes were intended for "component" directives, i.e. those that bring their own template. Although I've sometimes wanted to use the element children as an ad-hoc template so to say. It works with transclude, so maybe that's the way to go.
Indeed it doesn't sound like a good practice to rely on a component-directive's internals from the HTML (i.e. have child DOM elements that assume certain things about a directive on their parent) - if the contents are specific to a component, they belond in it's template.
Affect all versions, I can't find any issue related.
Test: http://plnkr.co/edit/x51ohRcoM8uCuaHpIloB?p=preview
To toogle the error go to script, un/comment line 34
The following directive, do not create a isolated scope
But this one will create the scope as expected.
I try to test the other scope combo (true/false) but i'm not sure if it's working... Can't find a proper test...
The text was updated successfully, but these errors were encountered: