ember-lodash
v4.19.5
Published
Lodash in ES6 for Ember.js apps
Downloads
59,198
Keywords
Readme
ember-lodash
This ember addon allows consumption of the lodash library (its ES6 module variant) in ember-cli apps.
Use
First you install this addon
# ember-cli > 0.2.3
ember install ember-lodash
# ember-cli <= 0.2.3
ember install:addon ember-lodashAnd then in your ember.js app, you can import individual lodash modules freely
import _string from 'lodash/string';
let truncatedString = _string.trunc(rawString);Additionally, if you wish to work with the entire lodash library on a single namespace, you have the option of importing that as well
import _ from 'lodash';
let truncatedString = _.trunc(rawString);It is also possible to import individual modules
import { trunc } from 'lodash';
let truncatedString = trunc(rawString);Installation
git clonethis repositorynpm installbower install
Running
ember server- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:testallto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
