Timeline for How to use a typescript enum value in an Angular2 ngSwitch statement
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 20, 2020 at 9:12 | history | edited | CommunityBot |
Commonmark migration
|
|
Dec 12, 2018 at 15:06 | comment | added | Silvio | upvote because of opening line "Start by considering 'Do I really want to do this?'" | |
Jul 20, 2018 at 22:19 | comment | added | genuinefafa | i like type check, specially in non- automatically tested development | |
Jul 18, 2018 at 21:06 | comment | added | Simon_Weaver | @genuinefafa this approach is really about getting the enum itself out of the html but still allowing the enum values to be compile checked. I suppose you could say it decouples html from ts but that in itself doesn’t offer any real benefits because they’re always used together. | |
Jul 18, 2018 at 21:02 | comment | added | genuinefafa |
not sure if I like constants inside html but i see your point and started using it; it does the job, as the good old days, when compiling! :)
|
|
Jul 12, 2018 at 20:21 | history | edited | Simon_Weaver | CC BY-SA 4.0 |
added 51 characters in body
|
Jul 12, 2018 at 20:15 | history | answered | Simon_Weaver | CC BY-SA 4.0 |