Creating And Extending A Lodash, Underscore Service In AngularJS

added by JavaScript Kicks
11/18/2014 2:06:53 PM

163 Views

In this example, I happen to be using Lodash; but, this could just as easily apply to any other external JavaScript library. Since AngularJS relies on dependency injection, I like to take all my 3rd-party scripts and expose them through AngularJS factories so that they can be injected into my Controllers, Services, Directives, and Run blocks.


0 comments