How to create an Angular 2 project by default using Angular-Cli (v.1.0.0)

Now that Angular-Cli v.1.0.0 and Angular v.4.0.0 are official, creating a default ng newproject using creates an Angular v.4 project.

For some time, I would still like to create Angular v.2 projects by default. Is there a global configuration setting for Angular-Cli?

UPDATE:
Obviously, the Angular-Cli team rushed to release and an error occurred. It is currently not even possible to create an Angular 2 project on the command line using --ng2to set it as a global default.

I opened issue for this.

+4
source share
1 answer

They answered the question that I created , the Angular-Cli team will not support the creation of Angular 2 projects with v.1.0.0 on.

Those who would like to create an Angular 2 application with a new CLI just created a new project and changed the package.jsonAngular module versions to an “older” one that works for you.

+3
source

Source: https://habr.com/ru/post/1673090/


All Articles