input框设置默认值 angularjs怎么在刷新页面的时候重置输入框的数据?

angularjs怎么在刷新页面的时候重置输入框的数据?一页。状态(“test”,{URL:“/test”,templateurl:“templates”)已定义/测试.html“,控制器:”test

angularjs怎么在刷新页面的时候重置输入框的数据?

一页。状态(“test”,{URL:“/test”,templateurl:“templates”)已定义/测试.html“,控制器:”testCtrl“})$州政府.go(“test”,{},{reload:true}).controller(“testCtrl”,function($scope,$state,$window){$scope.loadData=function(){alert(123)}$作用域.loadData() })