Skip to main content

Posts

Showing posts with the label Angular 2 Dynamic vs. Static Typing

TypeScript Tutorial for Beginners - The Fundamental Concepts!

TypeScript Interview Questions and Answers TypeScript - What Is? Typescript - Why Use? TypeScript - Setup and Install TypeScript - Variable TypeScript - Interface TypeScript - Optional Properties TypeScript - Constructor Parameters TypeScript - Functions TypeScript - Default Parameters TypeScript - Anonymous Functions TypeScript - Named Function TypeScript - Lambda/Arrow Functions TypeScript - Optional Parameters TypeScript - Rest Parameters Angular 2 Tutorials and Examples TypeScript - Modifiers TypeScript - Method Overriding TypeScript - Inheritance TypeScript - Class TypeScript - Types TypeScript - Pros and Cons! TypeScript - Modules TypeScript - Internal Modules TypeScript - External Modules TypeScript - Exports Modules Module vs. Namespace Export vs. Default TypeScript - Default Exports TypeScript - Export Keyword TypeScript Interview Q/A JavaScript What is Object in JavaScript? What is the P...

What is Typings in Angular 2 ? [Dynamic vs. Static Typing]

What is T ypings  in Angular 2? “Typings is the simple way to manage and install TypeScript definitions.” OR “The typings are managed by a type definition package manager called typings”. 1.       Typings allows the TypeScript compiler to use existing classes, properties, and so on… 2.       We can also install typings from a repository using the typings command. 3.       In the third-party libraries, does not ship with their own type definitions. The typings package manager is used to install those type definitions into project. To define a typings file as, export declare class User {     UserName: String;     constructor(UserName?: String); } Two Types of typing, 1.       Static typing 2.       Dynamic typing Angular 2 Dynamic vs. Static Typing :- Angular 2 applications can b...