kongadmin
Version:
Kong admin GUI
31 lines (29 loc) • 700 B
JavaScript
/**
* Angular service to inject lo-dash library to your controllers.
*
* Usage example in controller:
*
* angular
* .module('app')
* .controller('SomeController',
* [
* '$scope', '_',
* function ($scope, _) {
* var foo = _.map(data, function(foo) { return foo.bar = 'foobar'; });
* }
* ]
* );
*
* With this you can use lo-dash library easily in your controllers.
*/
(function() {
'use strict';
angular.module('frontend.core.libraries')
.factory('_', [
'$window',
function factory($window) {
return $window._;
}
])
;
}());