yes! Angular 7 is here, In this post, we will discuss new CLI commands and start a new Angular 7 application.
This Angular post is compatible with Angular 4 upto latest versions, Angular 7, Angular 8, Angular 9, Angular 10, Angular 11 & Angular 12
Let’s create a new Angular 7 application.
To create a new application using Angular CLI you must have NodeJs installed in your system.
Install Angular CLI
$ npm install -g @angular/cli
After installation, you can check the latest version using the following command
$ ng version
Create a new app
Now run following command to create new Angular 7 app
$ ng new ng7App
you can give any name instead of "ng7App"
Then it will ask if you want routing? You can add routing right here from cli.
After that, it will ask for a type of styling compiler you want in application CSS, SASS or SCSS, LESS etc
It may take some time to download modules required, after that you can enter root of the created application using the following command:
$ cd ng7App
after that you can run the application on the browser using the following command:
$ ng serve --open
then it will open on your browser with same ugly UI 😛 with your app title
In upcoming posts, we will discuss about more concepts and updates in Angular 7.