| 1. |
What Is The Need For Typescript In Angular2? |
|
Answer» Understanding the need for TypeScript file in Angular2 applications : JavaScript rules in Web development. Its the most popular language for developing web application UI. For may application developers having exposure in languages like Java and C#, creating the front end of a Web application in JavaScript is a very cumbersome process. For EXAMPLE if the user wants to create a class Employee in JavaScript. There is no class keyword in JavaScript so the code will be as follows- <html> class Employee This Customer.ts will compile to the above JavaScript code. So TypeScript provides the following advantages over JavaScript-
Understanding the need for TypeScript file in Angular2 applications : JavaScript rules in Web development. Its the most popular language for developing web application UI. For may application developers having exposure in languages like Java and C#, creating the front end of a Web application in JavaScript is a very cumbersome process. For example if the user wants to create a class Employee in JavaScript. There is no class keyword in JavaScript so the code will be as follows- <html> class Employee This Customer.ts will compile to the above JavaScript code. So TypeScript provides the following advantages over JavaScript- |
|