Introduction to Angular — Part 1
Angular is a framework for JavaScript for building client applications in HTML, CSS and TypeScript. TypeScript is a superset of JavaScript. TypeScript is a superset of JavaScript which means any JavaScript code can be compiled into TypeScript.
We need Angular because we want to build our application in a faster and an easier way.
Pre-requisites :
- HTML
- CSS
- TypeScript
Tools to be installed:
- Node (npm)
- Angular CLI
- Any suitable IDE (Visual Studio Code, preferred)
Building our first Angular Application :
On cmd, you can execute the following command to create your new application
ng new your-new-proj-name
Now, we will move to that project folder using the following command
cd proj-folder-name
and after that, we will use the following command to compile our application & to host it on the local port (4200 is the default port)
now, you can paste the url to your browser (http://localhost:53161/) and see your application.
Feel free to play with app.component.html file and display it in your browser.
To be continued…………