Fully working:
Install everything through the terminal:
npm install lodash
Add paths to index.html
<script> System.config({ packages: { app: { format: 'register', defaultExtension: 'js' } }, paths: { lodash: './node_modules/lodash/lodash.js' } }); System.import('app/init').then(null, console.error.bind(console)); </script>
Import lodash to the top of the .ts file
import * as _ from 'lodash'
source share