Suppose to have this home.component.html
page:
other component
<app-modal [display]="displayModal"></app-modal>
Now In my home.component.ts
I put like instance variable:
@Output() displayModal='none';
In my app.module.ts
do:
declarations: [
...
HomeComponent,
ModalComponent
....
],
And in my app-modal.component.ts
I use in my instance variable:
@Input() display;
But it gives me :
Can't bind to 'display' since it isn't a known property of 'app-modal'.
Anyone can help me?