Skip to content

Instantly share code, notes, and snippets.

@ashoktandan
Forked from johnpapa/create new file
Created June 19, 2016 05:31
Show Gist options
  • Save ashoktandan/0c2ebf19c4a83ef6ebf9d872fac75cc8 to your computer and use it in GitHub Desktop.
Save ashoktandan/0c2ebf19c4a83ef6ebf9d872fac75cc8 to your computer and use it in GitHub Desktop.
Getting Started Super Fast - Angular 2 CDN'd
npm init –y
npm i angular2 systemjs --save --save-exact
npm i typescript tsd live-server --save-dev
<!DOCTYPE html>
<html>
<head>
<title>Getting Started</title>
<script src="https://code.angularjs.org/tools/system.js"></script>
<script src="https://code.angularjs.org/tools/typescript.js"></script>
<script src="https://code.angularjs.org/2.0.0-alpha.39/angular2.dev.js"></script>
<script>
System.config({
transpiler: 'typescript',
typescriptOptions: { emitDecoratorMetadata: true }
});
System.import('./app.ts');
</script>
</head>
<body>
<my-app>loading...</my-app>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment