Showing posts with label Passing data between controllers using ‘service’ in AngularJS. Show all posts
Showing posts with label Passing data between controllers using ‘service’ in AngularJS. Show all posts

Saturday, 28 April 2018

Passing data between controllers using ‘service’ in AngularJS



        In this article I would like to know you about Passing data between angularjs controllers using ‘service’, actually we can maintain data  using $sessionStorage throughout the application. But If we want to pass data from one angularjs controller to other angularjs controller within the application, then we can use custom service. For that First declare a service :