I have created a sample demo
As you can see, I am passing ipNumber = '99';
to HelloComponent
.
but the @Input
is like
@Input() someVal : number;
I want to throw error when string is passed in @Input.
The correct input should be
ipNumber = 99;
and not
ipNumber = '99';