Quantcast
Channel: What is the right way to use lodash-es in Angular Universal? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Rahul VV for What is the right way to use lodash-es in Angular Universal?

$
0
0

Angular 2+ is typescript .. so you need to install @types/lodash from npm using the command below

npm install --save @types/lodash

then you need to import that in component like:

import * as lodash from 'lodash';

you can use lodash like

lodash.find()  etc...

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>