In angular 1.3, i see we have updateOn : blur etc..
<input
type="search"
ng-model="searchQuery"
ng-model-options="{ updateOn: 'default blur'}">
Question: Can we pass in our own function newFunctionCall
with parameters : blur ?? Something like ...
<input
type="search"
ng-model="searchQuery"
ng-model-options="{ newFunctionCall('abc',123,search): 'default blur'}">
So that i can use two different input with different argument with the SAME model . LIKE
<input name="contains"
type="search"
ng-model="searchQuery"
ng-model-options="{ newFunctionCall('pqr',456,search): 'default blur'}">
<input name="startsWith"
type="search"
ng-model="searchQuery"
ng-model-options="{ newFunctionCall('abc',123,search): 'default blur'}">