Property 'id' has no initializer and is not definitely assigned in the constructor.
// tsconfig.json
"compilerOptions": {
// ...
"strictPropertyInitialization": false,
// ...
}
// OR
@Component({...})
export class Component {
@Input() myInput: string|undefined;
}
// OR
@Component({...})
export class Component {
@Input() myInput!: string;
}