From my understanding using
@Input() name: string;
And using the inputs array in the Component decorator as follows
@Component({
...
inputs: ['bankName', 'id: account-id']
})
Is basically the same. They both specify a binding input attribute on the component/directive element. Is there any difference between the two? If so whats the difference and when should each of them be used?