Hi,
I've have a form using the AngularUI typeahead function which has been
working for some time. Recently, I returned to the project and the input
form now fails on the typeahead-input-formatter. My input box is:
<input type="text"
name="rTechnical"
> ng-model="request.ContactTechnical"
> typeahead="person.Id as person.FullName for person in
> ctrl.Search($viewValue)"
> typeahead-input-formatter="ctrl.formatSearch($model)"
> ng-focus="focus='Technical'"
> ng-blur="focus=''"/>
The search function works well and if typeahead-input-formatter is removed,
the person's id is displayed in the text box. The function, I am now using
for formatSearch is:
formatSearch: (model) =>
> #(person.FullName for person in @$scope.people when person.Id is
> model)[0]
> "Test User"
(Forgive the coffeescript but I'm hooked. I left the commented line in so
you can see what I was trying to achieve.) The JavaScript is just
function(model) { return "Test User"; }
which is clearly not a problem. The problem is that as soon as
formatSearch() is called, I get a $rootScope.inprog error (
http://errors.angularjs.org/1.2.2/$rootScope/inprog?p0=%24apply). The page
says check the call stack but it is just vendor code (angular, jquery,
ui-bootstrap).
What can I do to troubleshoot further? How do I discover what is actually,
in progress? I have rebooted and launched just this one page to ensure
there were no stray side effects from other functions.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.