2017-04-21 29 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()。按預期工作