Timeline for How to use a typescript enum value in an Angular2 ngSwitch statement
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 25, 2022 at 13:26 | history | edited | SwissCodeMen | CC BY-SA 4.0 |
deleted 2 characters in body
|
Jul 15, 2022 at 15:45 | comment | added | Martin Schneider |
So this behaves the same as the accepted answer which just says cellType = CellType; .
|
|
May 11, 2022 at 7:57 | comment | added | serge | could someone give a complete example? | |
Sep 30, 2021 at 8:51 | comment | added | Ali Celebi | Works like a charm. This will resolve the following error which you may encounter on the HTML file; "Property xyz does not exist on type". | |
May 25, 2020 at 1:30 | comment | added | tom |
@Rahul StatusEnum is defined in one of the .ts classes. In the Angular component you import it, bind it to a component property (here statusEnum ) and component properties are accessible from the template.
|
|
Dec 15, 2019 at 9:08 | history | edited | heinob | CC BY-SA 4.0 |
corrected spelling
|
Mar 3, 2018 at 20:13 | review | Late answers | |||
Mar 3, 2018 at 20:14 | |||||
Mar 3, 2018 at 19:53 | history | answered | Aymen Boumaiza | CC BY-SA 3.0 |