Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui router link inside growl #83

Open
hugsbrugs opened this issue Apr 11, 2015 · 1 comment
Open

ui router link inside growl #83

hugsbrugs opened this issue Apr 11, 2015 · 1 comment

Comments

@hugsbrugs
Copy link

Hi there,

I'am trying to insert a ui-router link inside my growl message :

in my translation file I have :

"LOGIN_BEFORE_SUBSCRIBE" : "You must create your account (or <a ui-sref=\"{app.root.locale.home.loginmail}\">login</a>) before you can subscribe (we need to know if you are an individual or a company and from which country to know if we have to charge you VAT or not ... )",

and in my controller :

growl.info($translate('LOGIN_BEFORE_SUBSCRIBE'), {referenceId:25, ttl:-1, disableCloseButton: true});

But link is not active. So I've tried :

"LOGIN_BEFORE_SUBSCRIBE" : "You must create your account (or {{login_link}}) before you can subscribe (we need to know if you are an individual or a company and from which country to know if we have to chage you VAT or not ... )",
growl.info($translate('LOGIN_BEFORE_SUBSCRIBE', { login_link: '<a ui-sref="{app.root.locale.home.loginmail}">login</a>' }), {referenceId:25, ttl:-1, disableCloseButton: true});

But then link is displayed as plain text ! I'm sure I'm missing something about interpolation but I can't figure out what ! Any suggestion and help appreciated ! Thanks

@novarac23
Copy link

novarac23 commented Aug 9, 2016

I have the same problem here. Would be interesting to see how it happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants