I want to pass input value from Parent component () to child component ().(I tried with @input but its not working. I think I am making some mistake?)
parent component :
<value>
<search [vin]="vin"></search><-- child componnent
<input class="in" type="text" pInputText [ngFormControl]="finVin" [ng-model]="vin"/>
</value>
class demo{
@Input() private vin:string;
}
child component :
<search>
<div class="lbl">
{{vin}}
</div>
</search>