2017-04-21 106 views
-1

这里我正在开发简单的角度html表单,我正在使用角度智能表。如何清除智能表搜索过滤器后,我请点击重置按钮如何在单击重置按钮时清除角度智能过滤器

我的HTML

<tr> 
    <th></th> 
    <th><input st-search="studentId" st-delay="1200" /></th> 
    <th><input st-search="studentName" st-delay="1200" /></th> 
    <th><filter-options code-id="200" search-field="studentType"> 
     </filter-options></th> 
</tr> 

<button id="cm-ResetBtn" name="cm-ResetBtn" type="button" ng-click="Reset()">Reset</button> 

我的角码

$scope.Reset = function() { 
    //TODO 
} 

回答

0

我固定的$state.reload()。按预期工作