I have the following enum:
export enum SubstitutionType {
REPLACEMENT_TEACHER_SUBJECT = 0,
REPLACEMENT_TEACHER = 1,
REPLACEMENT_FREE = 2
}
I try to user this in class like this:
class A {
public substitutionsType: SubstitutionType;
}
Then in template I can not get access to substitutionsType
like this:
substitutionsType.REPLACEMENT_FREE
Why, how to use this?