Skip to main content

Posts

Showing posts with the label JavaScriptDeveloper

What is Meta data and different types of meta data in angular with names

Hello Guys, In this blog we are going to learn about Metadata in angular with examples. What is Meta Data ?  Basically meta data is used to decorate a class so that it can be configure the expected behaviors of the class in angular. Basically In angular we have total 4 type of meta data 1) Class Decorator  :- Like @Components and @NgModule 2) Property Decorator : - It's mainly used for properties inside a classes.      Ex:-  @Input() & @Output() 3) Method Decorator :- It's mainly used for methods inside a classes.      Ex:- @Hostlistner() 4) Parameters Decorator :- It's mainly used for Parameters inside a classes.      Ex:- @Inject() If you guys have any query then you can drop a mail to us on this mail id: techoswag@gmail.com

How to use Java-Script Let & Const Overview ( ES 6 ) with examples

Hey Guys, in this blog we are going to learn about What is the different between   LET and CONST key word ( ES 6)    with examples  Let's get started... LET: Let  key word now we are using for  declaring variables . It's not like a surprise because it's come with improvement of  VAR  keywords. In  Let , we can declare variables like we are declaring using the  VAR keyword  but in  LET  keyword we cannot re-declare that variables like below. but we can change the value of variable like beow CONST: In  CONST  keyword we are using when we have  static value.  Let assume you have one value that  not going to change anywhere in the function of the file  in that case we can use  CONST  Keywords. we can not re-declare const variable and we can not update const keyword value like below. but we can use it like below. If you guys have any query then you can drop a mail to us on this mail id: techoswag@gmail.com