Hi All,
I am assigning the value to object in angular 8 using typescript.
- var userMaster = {
- userName = 'user1',
- email = '[email protected]',
- }
This shows the error : Invalid shorthand property initializer.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Piyush PansuriyaPosted May 12, 2020, 2:42 AM
Rajanikant HawaldarPosted May 12, 2020, 2:48 AM