Last active
September 4, 2015 11:26
-
-
Save lon9/5c294d037f773b4c2b41 to your computer and use it in GitHub Desktop.
Angucomplete-altの積みどころ ref: http://qiita.com/Rompei/items/9a69807f7d9fb98aaa8d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.selectedFn = function($item){ | |
$scope.hoges[this.$parent.$index].huga = $item.title; | |
} | |
$scope.changedInput = function(huga){ | |
$scope.hoges[this.$parent.$index].huga = huga; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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