By Gangaraju Kunaparaju on Jul 29, 2016 3:48:22 AM
In my last blog, Basic AngularJS with Routing [Part 1], I discussed AngularJS Controllers with examples. In this blog, I delve into Directive and Services.
Directives - Introduction
ng-show and hide
If user model is not empty then user details will be displayed.
A service in Angular is a component that performs a specific job, like providing a timer, or providing the ability to communicate over HTTP. We have seen that component and used it; it is the $http service. Services are very important concepts where it will be initiated only once for an application.