Looking for help with an anchor tag:
<a ui-sref="view({id:{{ id }}})" data-toggle="tooltip" data-placement="top" title="View Details"><i class="fa fa-search-plus fa-2x icon-color"></i></a>
The issue I'm facing is with the id value. It comes as "ID - 100" (with spaces). When the link is clicked, it redirects to a URL like "view/-100", removing the text characters before "-" and the spaces.
This leads to incorrect data being passed. Seeking a solution within ui-sref to handle this correctly without using ng-click.
Your assistance is much appreciated.
Link to JSFiddle: http://jsfiddle.net/6mpbfk3c/
Please note that there's an error in the console stating:
"NetworkError: 404 Not Found - http://jsonplaceholder.typicode.com/posts/-100"