How to MountWidget args

Hi! I`m trying to mount a widget in a raw hbs template

<MountWidget @widget="header-notifications" @args={{this.currentUser}}/>

but an error is thrown. I think it is so because I’ve added incorrect args, but I don’t know how to add it correct way, can you help how to add so the widget would work

1 Like

Do this like this

<MountWidget @widget="header-notifications" @args={{hash user=this.currentUser}}/>
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.