Angularjs autocomplete from $http

前端 未结 5 2145
-上瘾入骨i
-上瘾入骨i 2020-11-29 16:52

I\'m trying to write an autocomplete directive that fetches data from the server using an $http request (without using any external plugins or scripts). Cur

5条回答
  •  盖世英雄少女心
    2020-11-29 17:11

    I found this link helpful

    $scope.loadSkillTags = function (query) {
    var data = {qData: query};
       return SkillService.querySkills(data).then(function(response) {
       return response.data;
      });
     };
    

提交回复
热议问题