I have some elements which are created dynamically and every element has a different ng-href.
I want to give different link according to some elements.
When I try to write function in ng-href it sends the page to function in url,therefore it does not work.
I try to do something like this;
.......
<a
ng-href='if(m){#linkOne} else {#linkTwo}'
ng-click='test(type);'>
</a>
.......
Which method should i use to create element with different ng-href?