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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Piyush PansuriyaRank #454 · 5.5K reputationPosted May 11, 2020, 10:42 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted May 11, 2020, 10:48 PM EDT