Posts

Showing posts from October, 2020

Basic Concept In TypeScript Day 10

Image
Lecture 10 : Basic Concept In TypeScript Constructor : A constructor is a special method which will be called whenever we create new objects. And generally used of initializing the class members.  The constructor method is always defined with "constructor" keyword. The members of the class in a constructor are accessed using "this" keyword. Syntax :            constructor (){                                     //statements                                     } Example : Program- Output- Inheritance : In TypeScript, we can use common object-oriented patterns. One of the most fundamental patterns in class-based programming is being able to extend existing classes to create new ones using inheritance. Types of  Inheritance : We can classify the inheritance into the five types : Single Inheritance Multilevel Inheritance Multiple Inheritance Hierarchical Inheritance Hybrid Inheritance. TypeScript supports only Single inheritance an

Learn TypeScript Configuration Day 9

Image
Lecture 9 : Learn TypeScript Configuration TypeScript Configuration : TypeScript is a primary language for Angular application development. It is a superset of JavaScript with design-time support for type safety and tooling. Browsers can't execute TypeScript directly. Typescript must be "transpiled" into JavaScript using the tsc compiler, which requires some configuration. This page covers some aspects of TypeScript configuration and the TypeScript environment that are important to Angular developers, including details about the following files : tsconfig.json —TypeScript compiler configuration. The presence of a tsconfig.json file in a directory indicates that the directory is the root of a TypeScript project. The tsconfig.json file specifies the root files and the compiler options required to compile the project. typings —TypesScript declaration files. Use TypeScript type definition files—d.ts files—to tell the compiler about the libraries you load. Configur