I need to install Angular 2, but when I run $ ng new myApp, the version will be 4. I searched a lot, but could not find a way to install only version 2.
$ ng new myApp
Does anyone know how to do this?
Edit command: ng new MYAPP --ng4=falseThis does not work.
ng new MYAPP --ng4=false
You should use angular 4. it is in version for version now and from beta.
Check out the options ng new: https://github.com/angular/angular-cli/wiki/new
ng new
If you are in the angular cli version earlier than 1.0.0 , use the ng new myApp --ng4=falsedefault --ng4=false.
ng new myApp --ng4=false
--ng4=false
1.0.0 angular 2 . 1.0.0 . 1.0.0 , angular 4 . angular package.json .
package.json
Angular 4 - , . Angular 4 Angular 2.
- , , () , , - .
, , :
( ) , CLI Angular, CLI (, - package.json Angular CLI. CLI , ).
- package.json , package.json ( CLI Angular). , , , Angular cli .
, , / .json, , . , , .
Source: https://habr.com/ru/post/1674539/More articles:Как различать T и IList - genericsAWS SNS vs AWS step functions - amazon-web-servicesPostman: Можно ли настроить последовательность тестовых прогонов в листе коллекционера? - postmanto check IP entered by user - powershellHow to fold ReaderT and WriterT converters into a scalar? - scalaMultiple WordPress sites with one shared database using Docker - mysqlCell Swap Centering UICollectionView - iosflyway - repeating scenarios do not repeat - javaIonic 3 ссылается на новую страницу в выпуске модуля приложения - angularangular 2 form elements as components - validation does not work - angularAll Articles