enum declaration in angular 7 code example
Example 1: enum in ts
enum Direction {
Up,
Down,
Left,
Right,
}
Example 2: declare enum in type script
enum PrintMedia {
Newspaper = 1,
Newsletter,
Magazine,
Book
}
enum Direction {
Up,
Down,
Left,
Right,
}
enum PrintMedia {
Newspaper = 1,
Newsletter,
Magazine,
Book
}