AngularJs typeahead-loading ngRepeat error typeahead-loading form is undefined in controller ng-repeat not working