How can I create a project using the latest versions of angular
in this case the number 5 ( angular 5
).
How can I create a project using the latest versions of angular
in this case the number 5 ( angular 5
).
You need to install the angle cli in version 1.7
npm install -g @angular/[email protected]
Then you create your project: ng new nombreProyecto
To create a project with Angular 5 you need the following requirements:
Install Angular CLI 1.5.0 on your machine.
npm install -g @angular/cli
Create an Angular project.
ng new mi-proyecto-angular
Install TypeScript 2.4.2 in your project.
npm install typescript@'>=2.4.2 <2.5.0'
Start Angular project in development mode.
ng serve --aot
Distribute Angular project in production mode.
ng build --prod --build-optimizer