I have one component for example
export class Foo {
@Input() myInput:string = 'a';
}
Now I want the allowed values of myInput to be any of these only: a , b, c, d
if someone tries to do
<foo myInput="x">
He should get an compilation error
I believe this is possible
Thanks