Introduction

In this article, we will discuss the basics of Angular and the features of typescript.

What is Angular?

Angular is performance efficient and one of the most powerful Javascript frameworks used to build single-page applications for both web and mobile. Angular follows a component-oriented application design pattern to develop completely reusable and modularized web applications. Popular web platforms like Google Adwords, Google Fiber, and Adsense have built their user interfaces using Angular. The powerful features of Angular allow us to create complex, customizable, modern, responsive, and user-friendly web applications.

Angular Framework uses Typescript for developing single-page applications, as it supports static typing to write structured code with the help of modules and object-oriented concepts. As a result, less error-prone JavaScript code can be developed using TypeScript features.

Why do we use Typescript?

JavaScript is the language used for client-side scripting. We can use JavaScript frameworks for writing complex business logic which runs on the client side. As the complexity of the JavaScript code increases, it gradually becomes difficult to code and maintain. This is because of the limitations of JavaScript language. We do not have an option to change the language for the client-side scripting, as the browser understands only JavaScript.

The solution is to choose a language that is rich in features and the code can be converted to JavaScript. This process of converting code written in one language into another language is called Transpiration. TypeScript is one such language whose code can get transpired to JavaScript.

Pitfalls of Javascript

Most of the IDEs have good support for TypeScript, some of them are,

  1. Visual Studio 2015 and 2013 versions and so on.
  2. Eclipse
  3. Sublime Text
  4. Atom
  5. WebStorm
  6. Emacs and
  7. Vim

TypeScript is a superset of JavaScript and transpiles to the preferred version of JavaScript. TypeScript makes the development of JavaScript nearer to a more traditional object-oriented experience.TypeScript is based on ECMAScript 6 and 7 proposals. Any valid JavaScript is TypeScript.

Features of Typescript

Summary

In this article, I have discussed the basic concepts that are good to know before starting your first Angular application. I hope this article helps you groom your basic concepts. In the next article, we are going to learn how to set up a Typescript environment. Until next time, Happy Reading.

Cheers!