Skip to content

orszaczky/angular-lodash-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-lodash-module - Use Lodash from an Angular Controller or Service

Usage

  1. get it

  2. Add angular-lodash-module.js to your main file (index.html)

  3. Add the module as a dependency in your App definition

var myapp = angular.module('MyApp', ['lodash'])
  1. To use, add as an injected dependency to your Controller/Service and it is ready to use

angular.module('MyApp') .controller('MyCtrl', function ($scope, _) { ... //Use lodash _.each(...); ...


References:

Lodash:
http://lodash.com/
Stackoverflow:
http://stackoverflow.com/questions/14968297/use-underscore-inside-controllers
Github:
https://github.com/kmc059000/angular-lodash-module

About

Bridge to use lodash as a service in an Angular Controller

Resources

Stars

Watchers

Forks

Packages

No packages published