December 2017
Beginner
372 pages
10h 32m
English
Similar to class and interface, we can generate an enum in a separate file with the following command:
ng generate enum taskEnum
This will generate a class with a blank enum defined, as shown here:
export enum taskEnum{}
Normally, you will have multiple enums defined in a single class, for which you will then manually create a file.
Read now
Unlock full access