I need to import lodash into an Angular component.
In Angular 6 it seems I can use both of the following syntaxes
// either
import _ from 'lodash';
// or
import * as _ from 'lodash';
In Angular 5 it seems that only the second works. If I use the first one, _
is just undefined
.
Which is the reason for the different behavior?