I want to set @Input parameters optional.
For example:
Child1.html:
templateUrl:'common-html.html'
Child1.TS:
currentValue : boolean = true;
CASE 2:
Child2.html:
templateUrl:'common-html.html'
Child2.TS:
// Not declared **currentValue**
Common-HTML.html:
<app-master [isLogEnabled]="currentValue"></app-master>
But above changes giving an error while AOT:
Property 'isLogEnabled' does not exist on type Child2.Component
So I cannot change HTML of :
<app-master [isLogEnabled]="currentValue"></app-master>
<app-master></app-master>?isLogEnabled?: anyin the child component.