3

I'm creating an admin interface for my site where I can write article. In the editor, I can create links that end up as a[href] in the HTML code of the article.

When I load an article and insert its content into the page, links are still using href (as it should) but then it means that even internal links reload the full page and don't use the Angular router.

How could I "compile" the dynamic content to tell angular to transform "href" to "routerLink" ?

ssougnez
  • 5,315
  • 11
  • 46
  • 79

0 Answers0