I am trying to use enum as parameter the following way:
<div> {{ myValue | myPipe: MyEnum.ENUM_VAL }} </div>
In controller I have defined MyEnum:
@Component({
  selector: 'app-my-component',
  templateUrl: './my.component.html',
  styleUrls: ['./my.component.css']
 })
 export class MyComponent implements OnInit {
      MyEnum: MyEnum;
       ....
  }
I am getting: TypeError: Cannot read property 'ENUM_VAL' of undefined
What is the proper way of using it?