Como argumentos MountWidget

Olá! Estou tentando montar um widget em um template hbs bruto

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

mas um erro é lançado. Acho que é porque adicionei argumentos incorretos, mas não sei como adicioná-los da maneira correta, você pode me ajudar a adicionar para que o widget funcione?

1 curtida

Faça assim

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

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