How will you transfer data between two controllers?

devquora
devquora

Posted On: Feb 22, 2018

 

The most optimal way of transferring data between two controllers is by using a custom service. We achieve this result by creating a custom service with properties or functions which can be accessed by both the controllers.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    AngularJS Basic Interview Questions

    What is AngularJS?

    AngularJS is a javascript framework which helps in developing web applications in MVC architectural pattern & SPA or..

    AngularJS Basic Interview Questions

    What are angular directives?

    Angular directives are the attributes which are decorated on the html tags or elements of an html page. Directives have ..

    AngularJS Basic Interview Questions

    What are custom directives?

    Angular provides the ability to create our own directives to implement our own custom templates or logic in our web appl..