Within the child component, I am working with a string:
@Input() helloMessage:string;
I am looking to assign a value to this string from another string in the parent component and utilize it within the child component without displaying the value in the html. However, I am unsure of how to access the variable from the parent component. In order to achieve this, I need to do
this.helloMessage=parentComponentVariable
, as the helloMessage variable is required for use in the child component's methods.