Chris Tarasovs
Chris Tarasovs

Reputation: 695

How to import * as _ from "lodash" on Plunker platform?

I am trying to load loadash in plunker and Angular2

I putting

import * as _ from "lodash";

but don't know what I should write in System.config so that it works.

Could someone please help? https://plnkr.co/edit/gsfr1v?p=preview

Upvotes: 3

Views: 392

Answers (2)

anv
anv

Reputation: 3

<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.js"></script>

This script reference worked for me.

Upvotes: 0

Harsheet
Harsheet

Reputation: 628

You can add this reference -

<script data-require="lodash.js@*" data-semver="2.4.1" src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>

Reference - Lodash

Thanks

Upvotes: 1

Related Questions