This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
ngIf with replace:true on directive template #9837
Open
Description
Hello team,
We have a regression with the last angular version (since v1.3.0-beta.11)
In this commit d71df9f#diff-1c8fbee1402a2ef3c203def41d1960cdR97, you modified the child scope ngIf uses. Now with this modification, using ngIf on the root element of a directive template that is configured with replace:true
, the $scope is not the expected one. (it's not the same)
We tried to build a reduced test case to show the regression :
- 1.3.0-beta 10 : http://jsbin.com/sakuto/9/edit
- 1.3.0-beta 11 : http://jsbin.com/yubetu/1/edit
As you can see, the first directive failed in beta 11.
What do you think ? Is it a bug or the new expected behaviour ?
If so, maybe we should detail the documentation.
thx!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment