I started simple Angular 2 app, all working. But when I add import of lodash and try to use it, I get errors and the app stops working, and can\'t figure out what is the pro
I solved importing lodash in the following way:
import * as _ from 'lodash';
and in systemjs.config.js i defined this:
map: { 'lodash' : 'node_modules/lodash/lodash.js' }