Permalink
Browse files
fix(ngMessagesInclude): do not compile template if scope is destroyed
Messages imported with `ngMessagesInclude` are loaded asynchronously and they can arrive after the ngMessages element has already been removed from DOM. Previously we tried to compile these messages and that caused a `$compile:ctreq` error. Now they are silently ignored if `ngMessagesInclude`'s scope has already been destroyed. Closes #12695 Closes #14640
- Loading branch information
Showing
with
21 additions
and 0 deletions.