Skip to content

Instantly share code, notes, and snippets.

@lon9
Last active September 4, 2015 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lon9/5c294d037f773b4c2b41 to your computer and use it in GitHub Desktop.
Save lon9/5c294d037f773b4c2b41 to your computer and use it in GitHub Desktop.
Angucomplete-altの積みどころ ref: http://qiita.com/Rompei/items/9a69807f7d9fb98aaa8d
$scope.selectedFn = function($item){
$scope.hoges[this.$parent.$index].huga = $item.title;
}
$scope.changedInput = function(huga){
$scope.hoges[this.$parent.$index].huga = huga;
}
<div ng-repeat="hoge in hoges">
<angucomplete-alt id="huga" selected-object="selectedFn" remote-url="/hoge?q=" title-field="hoge" input-changed="changedInput"/>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment