Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

winodw

document
form
elmenr

variabke Private , public , privilage


Function also same as above

protypr - Parent child inheritance

function child(){}
child.prototype=new Person();// Person is another function

c=new child();
c.v1;//v1 is public variable in peerson abd we can acces

Person.protype.v6="Am outside variable";

c.v6;//

closerures// memry levek overriddung variabe //background works// templete

node js : exute js

node js install VAT engine(Chrme)

1. Excute js fie via cmd


2. server side scriot create
webpack

typescript
-----------------

strt with module

var <var name> :datatype=<value>

var sayHello:(name:satring)=>string // Function delcartion

sayHello=function(name:string)
{return "Hai"+name;
};
//lamda function one delcartion many impleemntaion, head input tail proces outpput
x=>x.anme

//object type anaoataion

var person ={name:string};


person={name:'sony';
};

interface can use without class


stricy=t typeing

ts can complile to js
tsc compile
node execute

node js provide repositiry as npm to install rquired


enum can use in ts

.... can used in ts

function can declare in 3 ways


1. lamdeda
2. without function keyword
3. with function keyword

class keyword
constructor keyesord

class A(
constructir(){}
play(){}
)

static keyword
Any keyword
super Keyword
inopertaor
instanceof operot

interface and class private default


export keyword to make public can use another module
inport keyword

ANgular CLI

compoent is collection of model(logic) & View(decorator and class)

Day2
-----------------

predefined ng directive : ngFOr, ngSwitch ...etc

structure level directive - * - ngFor,ngSwitch ..ect


Attribute levl directive , [], ngStyle, ngClass

Fromgroup
formcontrol

ngFor and Temaple can use same purpose

reactive : template genrated basis of backend dat )Prductfromgroup


cannoncal sytax
temkate drive is static html page

Dynmaic from is reactive pages

sugaring desugerring one

model driven (dynamic) is the best appriach. All control in devlopers hand and easy
to test

custom directive

3 types custom direc

Day 3
-------------------

service -- promse , observable

Promose -->two wait of implemntation then and aSynh await

large dats - stream - Observable -- Stream wise


rx - observabke

Fetchng dat using subscribe


fetching data and convert to promise
fetcing dat and then

Pipes

custom pipes

Async pipes

Lifecycle hooks
oninit(), onchnge(), ondestoryc(unscribe)

Day 4

---------------------

Routing

Simple Routing routeroutlet


Child Routing

safeguard

Preloading module stregty

resolver

Unit testing

security

JWT token - Interceptor

request come - tken genrated from serer -- store into local storge

next request come -- interceptor will attach the taken -- send to server -- server
validate

You might also like