Rohan Ramani

Rohan Ramani

  • NA
  • 786
  • 144.7k

Error : Invalid shorthand property initializer. Angular

May 12 2020 2:39 AM
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)