I am trying to pass data to my component. Here is the component code.
export class requestDetailComponent{
@Input() id;
@Input() name;
@Input() email;
@Input() purpose;
@Input() programme;
@Input() language;
@Input() comments;
visible = false;
toggle() {
this.visible = !this.visible;
}
and pattern:
<div class="col-sm-5">
<label>{{name}}</label>
</div>
Here is the parent component that passes the data
<ul>
<li>
<request-detail [name]='Salman'></request-detail>
</li>
</ul>
I expect it to Salmanappear in the child component, but this will not happen, what is the problem?
source
share