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
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
In the meantime, since you are only interested in the presence of the property and don't need a deep copy of it, you can convert it to boolean when using it inside ngClass (see below). This will also improve the performance.
// Replace that:
<divng-class="{foo: $ctrl.someLargeObject}"></div>
// With this:
<divng-class="{foo: !!$ctrl.someLargeObject}"></div>
Using objects with circular references in ng-class causes "stack size exceeded" errors in console.
Reproduced in 1.5.0 - http://plnkr.co/edit/TwZphKvat6tzWrzwOrv6?p=preview
Related to #11372.
The text was updated successfully, but these errors were encountered: