Required @Input

selector: ‘app-test[id]

Component({
  selector: 'app-test[id]' // id is required now
});
export class TestComponent {
  @Input() id:number;
}