Thursday, October 29, 2015

Keynote: AngularJS Services

Angular JS


To share the reusable logic & prevent duplication we've to use services:

  • Value (Used Often) - simplest recipes, that shares value through the app repeatedly.

  • Factory (Most Commonly Used) - shares methods and objects.

  • Service (Rarely Used) - shares instances of methods and objects.

  • Provider (Commonly Used like Configurable Factory) - shares methods & objects but allows configuration.

  • Constant (Commonly Used) - shares the constant values within app configuration.


1 comment:


  1. It is really very helpful for us and I have gathered some important information from this blog.
    Angularjs Experts in India

    ReplyDelete