Is it possible to attribute angular 2 files from CDN instead of installing them from nodejs

I have an angularjs 2 application. And I did not install nodejs (my company has some software restrictions and they will need them to install them).

Is it possible to link to all angular files from CDN and not to NPM from nodejs.

Do we need to work with nodejs / npm to work with angular 2?

+4
source share
1 answer

Yes, you can. This is how plunkr works. See system.config.jsand index.htmlthis plunk

Node and npm are there to facilitate the development of basic dependencies.

You can work without them using angular2 in JS (for TS you need to install tsc)

+2
source

All Articles