Maybe you wa...">

Angular translate with html and ngHref

I have this key / value in Json file for use in angular-translate:

{"MEETING_LINK": "<br/>Maybe you want to see the <a class=\"pink-link\" ng-href=\"/{{meetingLink}}/{{meetingId}}\">full meeting<a/> first?"}

      

When I call the translation in my html like this:

 <span 
    ng-bind-html="'GLOBAL.REMOVE_MODAL.MEETING_LINK' | translate:
    { meetingLink: meetingData.buttonLink, meetingId: meetingData.id}">
  </span>

      

This does not work. But if I replace ng-href in the anchor: href="/{{meetingData.buttonLink}}/{{meetingData.id}}

It works. Also, I want to add ng-click to the anchor element, I think angular directives in html are not working.

Can I do a trick to make this happen?

+3
parameter-passing html angularjs angularjs-directive angular-translate


source to share


No one has answered this question yet

Check out similar questions:

7205
Why does HTML consider "chucknorris" a color?
1929
HTML 5: is this a site, <br/ "> or <br/">?
1922
What are the valid values ​​for the id attribute in HTML?
1738
How do I create an HTML button that acts like a link?
1502
Redirect from an HTML page
1475
Converting HTML + CSS to PDF with PHP?
1104
What is the purpose of the "role" attribute in HTML?
1006
What is the difference between angular-route and angular-ui-router?
105
Correct usage for angular translations in controllers
12
Angular Translate HTML Tags



All Articles
Loading...
X
Show
Funny
Dev
Pics