DEV Community

Discussion on: Working with Enums in Angular components

Collapse
 
shane profile image
Shane McGowan • Edited

Pretty sure .values and .keys will do the same thing if you have your enum declare with a string value as follows

enum PropertyType {
  House = 'House'
}
Enter fullscreen mode Exit fullscreen mode

I assume you just have your enum declared like the below

enum PropertyType {
  House = 'House'
}
Enter fullscreen mode Exit fullscreen mode