Create a first config project using extension & package for AngularJs2 (initial project)
################## STEP TO STEP TO CREATE AN ANGULARJS 2 PROJECT ##################
Next you need to follow this steps :
touch index.html
npm init --yes
npm install --save-dev lite-server
npm run lite
################## TYPESCRIPT ################## And now, we need to install the Typescript into you project NG-2.
"lib": ["es2015", "dom"]
"start": "concurrently "npm run tsc:w" "npm run lite"",
npm install --save-dev typescript @types/node @types/jasmine @types/core-js
################## Angular 2 : Dependencies ##################
To install the dependencies use :
npm install core-js reflect-metadata zone.js rxjs systemjs --save or use : npm install core-js reflect-metadata zone.js rxjs@5.0.0-beta.12 systemjs --save
################## Angular 2 : Packages ##################
To install the angular packages use :
npm install @angular/core @angular/common @angular/compiler @angular/platform-browser @angular/platform-browser-dynamic @angular/forms @angular/http @angular/router --save npm i @angular/upgrade
create a new file systemjs.config.js and copy the same configuration of my project
Add the dependency in the view " index.html ":
<!-- load the dependencies -->
<script type="text/javascript" src="node_modules/core-js/client/shim.min.js"></script>
<script type="text/javascript" src="node_modules/zone.js/dist/zone.js"></script>
<script type="text/javascript" src="node_modules/reflect-metadata/Reflect.js"></script>
<!-- load angular app with system.js-->
<script type="text/javascript" src="node_modules/systemjs/dist/system.src.js"></script>
<script type="text/javascript" src="systemjs.config.js"></script>
<script>
system.import('app').catch(function (e) {
console.error(e);
});
</script>
<!-- Js End --->