how to make input in angular optional

CSS
export class ChildComponent {

    @Input() showName?: boolean;

    constructor() { }

}

Source

Also in CSS: