angular-underscore icon indicating copy to clipboard operation
angular-underscore copied to clipboard

Underscore adapter for AngularJS

Results 18 angular-underscore issues
Sort by recently updated
recently updated
newest added

How do I load this thing into my controller so I get `_`?

question

Shiv for "min" and "max" breaks "sortedIndex" on arrays of strings: ``` javascrpit _.sortedIndex(['a', 'd', 'f'], 'c') ``` Second argument is transformed to `propGetterFactory`: ``` javascript args[1] = propGetterFactory(args[1]); ```...

Can you provide an example for how to use map as a filter?

question

Could I get an example please?

question

You could just do: ``` js myApp.filter('_', function(){ return function() { var args = Array.prototype.slice.call(arguments, 0); var method = args.splice(1,1)[0]; return _[method].apply(this, args); } }); angular.forEach(_, function(method, name){ // prefix...

Only works for `number` type, must be fixed by comparison of alphabet.

bug

I really enjoy using Underscore and Angular together, and I was really stoked to use this for filters and whatnot, but could you toss up some more examples of how...

`Error: 10 $digest() iterations reached. Aborting!` i get this when using groupBy as a filter on a small set of data (20-30 items) ``` html {{place_type}} ```