Function 如何在点击按钮时清除我的所有ng型号旧数据?

Function 如何在点击按钮时清除我的所有ng型号旧数据?,function,button,angularjs-ng-repeat,rootscope,Function,Button,Angularjs Ng Repeat,Rootscope,我有按钮点击清除所有ng模型数据(home.html) <button class="btn hvr-underline-from-center" ng-click="clear_data11()"> <span class="icon-plus"></span> {{x.DryerId}}-{{x.formula_id}} </button> $rootScope.clear_data11 = function (){$rootSc

我有按钮点击清除所有ng模型数据(home.html)

<button class="btn hvr-underline-from-center" ng-click="clear_data11()">
    <span class="icon-plus"></span> {{x.DryerId}}-{{x.formula_id}} 
 </button>
$rootScope.clear_data11 = function (){$rootScope.MinTemp = "";$rootScope.MaxTemp = "";$rootScope.ActualTemp = "";$rootScope.IsPullPoint ="";$rootScope.ObservedTemp = "";$rootScope.ChemicalManually=""; $rootScope.note = "";}