fix(ngMessages): create new scope for ngMessage, clean it up correctly
Previously, ngMessage elements used the same scope as ngMessages. When ngMessage has interpolation in the textContent, then removing the message would not remove the watcher from the scope - it would only be removed when the whole ngMessages element was removed. This commit changes the ngMessage transclude function to create a new child scope instead, which can be destroyed safely when the message element is removed and the message is detached Fixes #14307 PR (#14308)
M
Martin Staffa committed
56f33af89045e2ec18d144d9d1ef73affbe51959
Parent: 41bea59
Committed by Martin Staffa <mjstaffa@gmail.com>
on 6/10/2016, 12:49:08 PM