Skip to content

how to load third lib *.js with angular-cli.json config #3351

Description

@lichenbuliren

Versions.

angular-cli: 1.0.0-beta.19-3
node: 6.3.0
os: darwin x64

I don't know how to include third part lib *.js
this is my config:

in anuglar-cli.json config

...
"scripts": [
  "../node_modules/jshashes/hashes.min.js"
],
...

in my ts component

declare var Hashes: any;

and then , when I use Hashes.SHA1.hex_hmac() ,the console show error
Hashes is not defined.

is there anything i'm wrong ?

tks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions