AngularJS – Conditional Display using ng-show / ng-hide, ng-if, ng-include, ng-switch

Hiding or showing parts of a DOM based on some conditions is a common requirement. AngularJS has four different directives (ng-show / ng-hide, ng-if, ng-include, ng-switch), which are used to conditionally display or hide the HTML DOM elements. Conditional display using ng-show/ng-hide The ng-show / ng-hide directives require a boolean value to evaluate the visual … Continue reading “AngularJS – Conditional Display using ng-show / ng-hide, ng-if, ng-include, ng-switch”

Single page application using AngularJS

Single page application is superior in terms of performance. It decreases load time of pages by storing the functionality, once it is loaded the first time. If you need to update small parts of page, it’s faster to focus only on these views and their data rather than reloading entire page. Some of the key … Continue reading “Single page application using AngularJS”