[ SOLVED ] EventAggregator problem

Hi all,
i’m doing a system to notify the user that something is happen, like a success login so i’m using an EventAggretor to show the html code with a success textput in the app.html from the login screeen.

To undestand better the probleme here you are the code:

“Flashmessage.ts”:

“FlashmessageHtml”:

“FlashmessageHtml inserted to app.html”:

“Code that publish a text”:

The call works but when i try to show/hide or change text of the control all class’ variables are undefined so it doesn’t bind anything.

Could anyone explain me why i can’t set ?

Thank you,
Andrea

EDIT:
Problem solved.
The call have to be made like in the screenshoot:

1 Like