I'm using Angular UI - Bootstrap, specifically the Typeahead directive. http://angular-ui.github.io/bootstrap/#/typeahead
I'm attempting to use the 'typeahead-template-url' to create custom html templates for my suggestion boxes. After trying multiple techniques, unsuccessfully, I discovered that by purposely messing up my quotation marks 'solved' the display issues. I would love to understand why this is breaking and get it working properly.
For example: this works
<table class="> <!--see class quote error --> <tr> <td> <div ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)"> <a>ID{{ match.model.id }} - {{ match.model.text }}</a> </div> </td> </tr> </table>
This DOESN'T WORK
<table class=""> <tr> <td> <div ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)"> <a>ID{{ match.model.id }} - {{ match.model.text }}</a> </div> </td> </tr> </table>
FIDDLE is here: http://jsfiddle.net/nicktest222/JXtaZ/24/
Additionally, when you select an item in the results list, it returns the entire object. How can I get it to return a specific property in the object?
Any help would be greatly appreciated.
Thanks