valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
675 stars 587 forks source link

RouterLink / Href into selected value #853

Closed NkxNg closed 7 years ago

NkxNg commented 7 years ago

Hello,

I am currently using ng2-select and I would like to put some html content in the component. I want to put routerLinks and href into my selected value.

A simple example of what I want to do exactly : <a routerLink='/home'><b>Test</b></a> <br/> <i><small>Test</small></i>

The html content is correctly displayed, but when I click on the "Test" link, I do not get redirected to the expected route and stay in the current page (the Url does not change at all). Yes, I put <router-outlet></router-outlet> and yes, the "/home" path exists.

So I would like to know if ng2-select handled, will handle or not at all this behaviour or if I am doing this wrong ?

Thank you in advance,