2
Answers

Error : Invalid shorthand property initializer. Angular

Rohan Ramani

Rohan Ramani

4y
698
1
Hi All,
I am assigning the value to object in angular 8 using typescript.
  1. var userMaster = {  
  2.   userName = 'user1',  
  3.   email = '[email protected]',  
  4.  } 
This shows the error :  Invalid shorthand property initializer.
Answers (2)