cabrel / angular-lodash Goto Github PK
View Code? Open in Web Editor NEWThis project forked from floydwch/angular-underscore
Lo-Dash adapter for AngularJS
License: Other
This project forked from floydwch/angular-underscore
Lo-Dash adapter for AngularJS
License: Other
Hi,
It would be nice if you could also add '' service as well. Even though lodash functions are available in $scope it would be nicer to have '' service in this module as well. Currently I need make that service to all projects, becasue I don't want to write $scope everytime I use lodash inside controller AND I don't want to use global '_' neither.
if('_'.length < '$scope'.length) console.log('This would be nicer to use inside controller :)');
Adding service:
.factory('_', ['$window', function($window) {
return $window._;
}]);
and jsfiddle from that http://jsfiddle.net/RopoMen/c2sgLjou/
Br,
Markku Roponen
Hi Cabrel,
Thanks for the effort in putting library to make it easy to use in Angular.
Lodash is continuously improving, we upgrade when required.
This library should be a variant to lodash. It should be able to provide reference to user installed lodash not to the version this has copied.
I just wanted to state my opinion. Hope you will understand.
Kind regards,
Phani.
Hi,
Due to the fact _.filter proxies to angular's built in filter, using _.filter on an object doesn't work correctly.
I expect the second parameter to be the object key, but instead the object is converted to an array and the second param is the index.
in angular 1.2.x, when using a construct like
`
...the comparator will be ignored...this should be fixed or be described somewhere
Does it need any dependency? Underscore?
More use case would be useful.
Like for every defined filter at least one example.
ReferenceError: _ is not defined
https://pkg/angular-lodash/angular-lodash.js
Line 153
Haven't used lodash before. What might this error be implying?
Used example from readme got angular error;
this one:
stackoverflow
join with empty string as default would be usefull because lodash will convert string into arrays
Hi,
I am getting the dreadful _ is not defined in the file generated by browserify
, even though I require the proper libs in the right sequence in the source js file, like such:
require('../../bower_components/angular/angular.js');
require('../../bower_components/lodash/dist/lodash.compat.js');
require('../../bower_components/angular-lodash/angular-lodash.js');
Any thoughts?
Thanks!
Hi, I was trying to install via bower but I'm receiving the next error message:
$ bower i --save angular-lodash
bower angular-lodash#* cached git://github.com/cabrel/angular-lodash.git#0.1.2
bower angular-lodash#* validate 0.1.2 against git://github.com/cabrel/angular-lodash.git#*
bower lodash#~2.4.1 cached git://github.com/lodash/lodash.git#2.4.2
bower lodash#~2.4.1 validate 2.4.2 against git://github.com/lodash/lodash.git#~2.4.1
bower lodash#>=1.3.0 cached git://github.com/lodash/lodash.git#3.10.1
bower lodash#>=1.3.0 validate 3.10.1 against git://github.com/lodash/lodash.git#>=1.3.0
bower ECONFLICT Unable to find suitable version for lodash
But this is my bower.json:
"dependencies": {
"angular": "~1.4.8",
"lodash": "~3.10.1"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.