Skip to main content

Angular - Part 1




What is Angular?
Angular is a platform that makes it easy to build applications with the web. Angular combines declarative templates, dependency injection, end to end tooling, and integrated best practices to solve development challenges. Angular empowers developers to build applications that live on the web, mobile, or the desktop.
Angular lets you extend HTML with HTML attributes called directives. Angular directives offer functionality to HTML applications. Angular is open source front end framework and it was written in Typescript. And it was built by developers of google.

Features of Angular.
Following are the key features of Angular:
  • Components − The earlier version of Angular had a focus of Controllers but now has changed the focus to having components over controllers. Components help to build the applications into many modules. This helps in better maintaining the application over a period of time.
  • TypeScript − The newer version of Angular is based on TypeScript. This is a superset of JavaScript and is maintained by Microsoft.
  • Services − Services are a set of code that can be shared by different components of an application. So for example if you had a data component that picked data from a database, you could have it as a shared service that could be used across multiple applications.

How to install Angular?
 Create environment for Angular.
1.       Install NPM. https://nodejs.org/en/.
·         Install from web.
2.       Check NPM version.
·         Search for Node command prompt. Enter node -- version. Min 6.9 is required for Angular.
3.       Install Angular CLI.
·         In Node cmd, npm install -g @angular/cli
4.       Check Angular version.
·         In Node cmd, ng –version.
5.       Create new Angular project.
·         Change the path to folder, where you want to create Angular project. Enter ng new MyFirstApp.
6.       Compile and Run Angular project.
·         Move to the Project folder, Enter ng serve. Will compile and run in browser.

Comments