how to make input in angular optional

export class ChildComponent {

    @Input() showName?: boolean;

    constructor() { }

}