Angular module/service for RamdaJS
npm install ng-ramda npm install ng-ramda --save `
Import ngRamda as a service. The other Angular Ramda module puts everything in the root scope, which is an Angular antipattern for obvious reason. If you like using the Angular injection pattern, as you should, this may serve your purposes better!
First add the script in your HTML file.
`html
`
OR import via JavaScript
`javascript
import 'ng-ramda';
// or
require('ng-ramda');
`
Then just inject the module and service.
`javascript
angular.module('myApp', ['ngRamda'])
.service('myService', function myService (ngRamda) {
var myOtherFunction = (something, someNumber) => something.id + someNumber;
var myFunction = ngRamda.curry(myOtherFunction);
return myFunction;
});
``