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.
Given an element with directives A and B, with A.scope = {foo: '=bar'} and B.scope = true, Firefox wrongly throws a "Multiple directives [A B] asking for isolated scope".
Hello,
Given an element with directives A and B, with
A.scope = {foo: '=bar'}
andB.scope = true
, Firefox wrongly throws a "Multiple directives [A B] asking for isolated scope".I traced it to the
applyDirectivesToNode(directives, ...)
function in the compile.js file (https://github.com/angular/angular.js/blob/master/src/ng/compile.js#L681)On Firefox,
directives == [A, B]
, thus wrongfully triggering the assert when processing B, because newIsolateScopeDirective is set to A.On Chrome,
directives == [B, A]
, avoiding the bug.The obvious fix would be to put the assert inside the if statement (why would you check for duplicate isolate scope this early?)
Please advise,
Thanks
The text was updated successfully, but these errors were encountered: