javascript - Getting typeahead to work in an Angular template? -


i have partial html being routed to, template , custom controller. code snippet in angular template working is:

<input type="text" typeahead=val val in getvalue($viewvalue)>

however, never enters function getvalue(), while other functions in controller seem okay. when take typeahead out of angular template/partial, seems work. why , how fix it?

you need have ng-model attribute use typeahead directive angularui, if don't need bind anything.

change markup similar following:

<input type="text" ng-model="typeaheadval" typeahead="val val in getvalue($viewvalue)"> 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

Simple Angular 2 project fails 'Unexpected reserved word' -

php - Get process resource by PID -