Posts

Why Do We Need In Angular Day 12

Image
Lecture 12 : Why Do We Need In Angular What is Angular : Angular is an open-source front-end framework developed by Google for creating dynamic, modern web apps. First introduced in 2009, the framework has gained huge traction over the years for eliminating unnecessary code and ensuring lighter & faster apps. Why do we Need in Angular : We have listed the reasons below : 1)  Supported by Google : The best part about it is Google’s Long-Term Support (LTS). This sheds light on Google’s plan to stick with it and further scale up the Angular ecosystem. Google apps also use this framework and their team is very optimistic about Angular’s stability, Other Angular developers also get a golden opportunity to learn from certified professionals. 2) TypeScript : Angular applications are built using TypeScript language, a superscript for JavaScript, which ensures higher security as it supports types (primitives, interfaces, etc.). It helps catch and eliminat...

Understanding Concept of TypeScript Day 11

Image
Lecture 11 : Understanding Concept of TypeScript Abstract Classes : Abstract class is a half defined parent class. Abstract classes are base classes from which other classes can extend.They cannot be instantiated themselves. The two key characteristics of an abstract class in TypeScript are: 1) They can implement methods of their own. 2) They can define methods that inheriting classes must implement. For this reason, abstract classes can conceptually be considered a combination of an interface and a class. Interfaces : Interface is a CONTRACT, LEGAL <, ENFORCEMENT - impact analysis. An interfaces specifies a list of fields and functions that may be expected on any class implementing the interface. Conversely, a class cannot implement an interface unless it has every field and function specified on the interface. Need Of Interfaces : The primary benefit of using interfaces, is that it allows one to use objects of different types in a polymorphic way. This is because...

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 class...

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...

Concept Of TypeScript Day 8

Image
Lecture 8 : Concept Of TypeScript What is TypeScript : TypeScript is a strongly typed, object oriented, compiled language.  “TypeScript is JavaScript for application-scale development.” TypeScript is both a language and a set of tools. TypeScript is a typed superset of JavaScript compiled to JavaScript. History of TypeScript : In 2010, Anders Hejlsberg , a core member of the development team of C# language, started working on TypeScript at Microsoft.  The first version of TypeScript was released to the public in the month of 1st October 2012, and was labeled as version 0.8. Now, it is maintained by Microsoft under the Apache 2 license.  The latest version of Typescript is TypeScript 3.5, which was released to the public on May 2019. Features of TypeScript : TypeScript is just JavaScript : TypeScript starts with JavaScript and ends with JavaScript. Typescript adopts the basic building blocks of your program from JavaScript. Hence, yo...

Learn Node JS For JavaScript Day 7

Image
Lecture 7 : Learn Node JS For JavaScript Editor : VS Code Compiler : Node JS Package Manager : NPM VS Code : VS Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. What is Node.js : Node.js is an open source server environment. Node.js is free. Node.js runs on various platforms (windows, Linux, Unix, Mac OS X, etc). Node.js uses JavaScript on the server. Why Node.js :  A common task for a web server can be to open a file on the server and return the content to the client. Here is how PHP or ASP handles a file request: Sends the task to the computer's file system. Waits while the file system opens and reads the file. Returns the content to the client. Ready to handle the next request. Here is how Node.js handles a file request: Sends the task to the computer's file system. Ready to handle the next request. When the file system has opened and read the file, the server returns the content to the client. Node.js el...

VS Code In JavaScript Day 6

Image
Lecture 6 : VS Code In JavaScript What is VS Code : Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. VS Code was announced on April 29,2015 by Microsoft at the 2015 Build conference. Why did we build VS Code : Visual Studio Code combines the simplicity of a source code editor with power developer tooling, like IntelliSense code completion and debugging. First and foremost, it is an editor that gets out of your way. The delightfully frictionless edit- build- bebug cycle means less time fiddling with your environment, and more time executing on your ideas. IntelliSense : IntelliSense is a general term for a variety of code editing features including : code completion, parameter information, quick information, and member list. IntelliSense features are sometimes called by other name such as "code completion", "content assist", and "code hinting". ...