I am using @Input() in my component to recieve a value from the parent component.When calling the child component,sometimes there may be value sent to the @Input() and sometimes not.For now I am not getting any error if I am not passing any value to the child component.Is this okay or i should modify the code.
Parent component
<!--THE CHILD DIRECTIVE WITH INPUT-->
<app-child [inputValue]="inputWithValue"></app-child>
<!--THE CHILD DIRECTIVE WITHOUT INPUT-->
<app-child ></app-child>
Child Component
@Input() inputValue :any;
In Brief My question is,
Would there be any problem ,calling the child directive without giving any input? I am not getting any errors for now