Install Lodash in Angular


How to install lodash in Angular?

You need to install lodash library along with typings.

npm i --save lodash
npm install --save @types/lodash

Once installed you can import the library in your Angular component.

import * as _ from 'lodash';