This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ngIf): don't create multiple elements when changing from a truthy…
… to another thruthy value. Fixes #4852.
- Loading branch information
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4612705
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. still it does not work for me...
4612705
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
I updated the original plnkr.co to use the current master (http://code.angularjs.org/snapshot/angular.js) and it does what it should do: http://plnkr.co/edit/2Adgfo09S65Zw3cpcLbG?p=preview.
Could you explain in more detail what is not working?
Thanks,
T
4612705
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
this example on plnkr works well, and also your change is quite logic...
Maybe I made some mistake, I'll check tomorrow as soon as I get to office :)
4612705
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You got right - everything is well and working.
I tried to override ngIf directive in 'ng' module, but instead it was
added so 2 similar directives worked in the same time (so one
was working good but other one was appending more copies of
element).
Sorry for disturbing..
4612705
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.