搜索结果返回角度js问题中的索引值

时间:2017-03-16 06:25:54

标签: python angularjs

Angular JS 搜索结果只是索引格式问题

in an image showing the search result indexing fist and then get the result from the local storage

2 个答案:

答案 0 :(得分:0)

我认为HTML代码问题,而不是{{key}}使用{{data}}或{{data.yourVariableName}}

$this->validate($Request, [
    'Email' => 'required|unique:users',
    'Username' => 'required',
    'Password' => 'required',
    ]);

答案 1 :(得分:0)

看起来您应该使用{{data}}代替{{key}}

<div ng-show="query != ''" class="dashboard-clients"> <div ng-repeat="(key, data) in result"> <a ng-click="selectClients(key)">{{data}}</a> </div> </div> </form> </div>