From the model class, at some random point of time, I need to pass 2 arguments to component to update the html. This argument will be used by the component function to make some UI modifications in the view.
For example:
this.notifyservice.SetTitleMessage(val1: string, val2: string);
Inside the component, i have a different function:
public DisplayTitleMessage(val1: string, val2: string){
this.showitem = (val1 == "item1") ? true: false;
}
These 2 parameters(val1 & val2) should be used to update component member variables(showitem) which in turn update the html.
Can anyone guide me how the component can be updated at any random point of time from within a model class?