Wednesday, 15 June 2016

ng-if vs ng-hide and ng-show

ngIf differs from ngShow and ngHide in that ngIf completely removes and recreates the element in the DOM rather than changing its visibility via the display css property.

Which means: you can not put angular tags into ng-if. because it will stop inside all angular staffs.

No comments:

Post a comment