How to Install Typescript?

First, we have to install the node js to work with Typescript.

Node js providers an environment to execute the Javascript outside the browser.
Install the latest stable version of Node js. After installing node js you will have NPM (node package manager) which helps to install third-party libraries.

Open command prompt and type below command to check node js install or not
node --version
v12.16.3 (displays the version installed)

Now type the below command to install typescript
npm install -g typescript
-g this signifies that we are going to install typescript globally

After installing successfully check using below command
tsc --version
Version 3.9.2 (displays the version installed)

Now you can start working with typescript using your favorite editors like vscode, sublime Atom, etc

Have a look at the basic concepts of Typescript

What is Angular?

Angular is basically a framework for building client applications using HTML, CSS, Javascript, or Typescript.

Angular itself is written using Typescript. When compiling angular application transpiles to Javascript code. Transpiling is a process of converting the typescript code to javascript.

Need for Angular
When we build a complex application using Javascript, it is very difficult to structure, maintain, and test the application. To address these issues we use modern front end frameworks like Angular, React or Vue.js

Benefits

  • Helps to have a clean structure for application
  • Easy to Unit test
  • Reusable Code
  • Traditional javascript are difficult to manage.

The architecture of Angular Application
The angular application works in front only. Data storing is not the headache of angular. It is the back-end service that helps in data storing. Angular uses API(Application Programming Interface) to interact with backend.

First, you can install the typescript and then start setting up your first angular project
Install typescript
Setting up your first Angular Project

If you face any issue during the set up of your angular application, kindly drop in the comments section.