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
Seems that #1460 broke a pattern I was using for "strongly" typed alert types.
Essentially, if the type property of the alert is actually an object with toString overridden to provide the actual type string, the alert directive no longer resolves it correctly, resulting in an alert with no alert type class set.
The repro also shows that manually using the same model property in a manually constructed alert (just using divs) works fine, it's the alert directive that can't use it.
Workaround for me for now is to change my binding to include the call to toString(), e.g.:
Seems that #1460 broke a pattern I was using for "strongly" typed alert types.
Essentially, if the
typeproperty of the alert is actually an object withtoStringoverridden to provide the actual type string, the alert directive no longer resolves it correctly, resulting in an alert with no alert type class set.Repro at http://plnkr.co/edit/GpvAnJpTHLHvcW83novF?p=preview
The repro also shows that manually using the same model property in a manually constructed alert (just using divs) works fine, it's the alert directive that can't use it.
Workaround for me for now is to change my binding to include the call to
toString(), e.g.: