Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Angular 2 (or 4) framework from CDN [duplicate]

In Angular 1.x we had the option of linking to Angular framework using a CDN (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js). Is that option available in Angular 2?

like image 425
user4617883 Avatar asked May 09 '17 11:05

user4617883


1 Answers

You can try a CDN like unpkg

Load System JS and ES6:

<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js"></script>

Example with plnkr

Example with JSFiddle

like image 68
Jonathan Dion Avatar answered Nov 07 '22 15:11

Jonathan Dion