The TypeScript enum can be used directly in your class, but it has to be assigned to a local variable to be used in the template.
Declaration example:
import { Component } from '@angular/core';
enum LanguageType {Java = 1, 'JavaScript' = 2, "TypeScript" = 3}
@Component({
selector: '