What's the best way to create a function using @Input()
in an Angular component?
For instance, when defining a method that should return a boolean value:
@Input callback:
//(only allow methods with boolean return value)
@Input callback: Function
// I'd rather restrict it to just boolean-returning functions.