The View not updating after push to array in ionic

i got problem the view in page not updating after i push a new element to ngfor
but when i got out and back to page the update shown

I think you missed a semicolon there.

In all seriousness though it’s nigh impossible to help without seeing your template and code.

After the push, detect changes with ChangeDetectorRef.

Manual change detection triggering is needed only in relatively rare circumstances. Simply pushing a new element into an ordinary array that is being iterated over using ngFor does not qualify.