Angular is a framework for building a single page client side application/desktop application using HTML and Typescript. Angular is fully-featured and it is very flexible to use.
Angular is Model View Controller Architecture and therefore, its performance is very high.
Angular is open-source and is written in Typescript and compiled into JavaScript.
Following are several reasons why we choose Angular:
MVC stands for Model View Controller:
Let’s discuss the components:
Model: This component manages the application data and carry data between view and controller.
View: This component manages with how data is displayed to user. This component sends the request to controller to get the particular data that is requested by user
Controller: This component manages the relation between view and model. Controller respond the user input and performing action on data model objects.
npm install @angular/cli -g
ng new project name
Here, I had given the name Angularproject as project name
Moving to next step, they ask you for add Angular routing: and you have to type ‘y’ to sayyes
Then command prompt will ask you for adding a style sheet for the project, and you have to type ‘y’ or ‘n’ as per your convince.
Finally, your Angular project are created. You can check your Angular project folder structure.
Moving on next step, you need to open your text editor (VS Code) and check your folder structure that is created and we need to write code .in command prompt for this.
Then we are adding the node module in our project by adding command:
That is npm start
This command is used for creating a node module in our project. The Node Modules is a directory that is only used for build tools and root defines where libraries will be installed.
The Last command of our project is for build and run the application that is created in angular that is ng s (where ng stands for next generation and s stands for serve)
Ng serve command builder and serve the application that you had created and it rebuilds, when the application if changes occurred afterwards the project is running the browser. And following screen will appear in the browser.
This is the Overview of Angular project and I hope you understand the concept of Angular. If you are interested to take Online/Offline Angular courses, we are providing Angular training in Jalandhar
Leave a Reply