ng-snotify icon indicating copy to clipboard operation
ng-snotify copied to clipboard

ExpressionChangedAfterItHasBeenCheckedError

Open tatsujb opened this issue 6 years ago • 6 comments

this lib is lifting the typical Angualr 5+ error of state change after check :

error message :

Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ngForOf: undefined'. Current value: 'ngForOf: leftTop,leftCenter,leftBottom,rightTop,rightCenter,rightBottom,centerTop,centerCenter,centerBottom'.
    at viewDebugError (core.js:7393)
    at expressionChangedAfterItHasBeenCheckedError (core.js:7381)
    at checkBindingNoChanges (core.js:7483)
    at checkNoChangesNodeInline (core.js:10344)
    at checkNoChangesNode (core.js:10333)
    at debugCheckNoChangesNode (core.js:10936)
    at debugCheckDirectivesFn (core.js:10864)
    at Object.eval [as updateDirectives] (SnotifyComponent.html:formatted:1)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:10853)
    at checkNoChangesView (core.js:10232)

pointing to this :

<div class="snotify-backdrop" *ngIf="backdrop >= 0" [style.opacity]="backdrop"></div>
<div *ngFor="let position of notifications | keys" class="snotify snotify-{{position}}">
    <!-- FAULTY --><ng-snotify-toast *ngFor="let notification of notifications[position] | slice:blockSize_a:blockSize_b" [toast]="notification" (stateChanged)="stateChanged($event)"></ng-snotify-toast>
</div>

this need to be fixed to meet angular's specs.

tatsujb avatar Jul 17 '18 12:07 tatsujb

Same problem

Nexeuz avatar Jul 19 '18 23:07 Nexeuz

Same Issue...! When this can be fixed?

siddhsuk avatar Aug 27 '18 18:08 siddhsuk

I have the same error, but everything works as expected. (Angular 6)

abdullaunais avatar Oct 08 '18 11:10 abdullaunais

same : https://github.com/artemsky/ng-snotify/issues/51 guys I think we're better off moving to another lib @artemsky has'nt responded in nearly a year.

tatsujb avatar Oct 09 '18 18:10 tatsujb

Same error in Angular 7. Notifications still work as expected but this error is the only one being thrown in the entire application and means it can't be put through to production (Zero error policy).

Shame to see such a good library die out after all the work that must have gone into it's development.

AndyOR-Apis avatar Jul 16 '19 12:07 AndyOR-Apis

same problem,I am using Angular 11

CristianFlaviu avatar May 04 '21 20:05 CristianFlaviu