I'm newbie in Angular but I believe this is a way to pass data between components in Angular using @Input
:
In parent component :
...
<app-child [childMessage]="parentMessage"></app-child>
...
In child component :
...
@Input() childMessage: string;
...
But in my case,
I can't call my component selector that I want to pass.
And how do I pass the data ?
Ps : What I mean "Call" is doing this --> <app-child></app-child>