在使用uib-tab的时候,对于切换的每个页面,用$scope.input 不能直接获取html中
<input type=text ng-model="input"/>里面输入的内容,需要在给它加一个对象才能获取;
html:<input type=text ng-model="a.input"/>
js:$scope.a={};//定义一个空的对象
$scope.a.input="";//将输入框置为空
在使用uib-tab的时候,对于切换的每个页面,用$scope.input 不能直接获取html中
<input type=text ng-model="input"/>里面输入的内容,需要在给它加一个对象才能获取;
html:<input type=text ng-model="a.input"/>
js:$scope.a={};//定义一个空的对象
$scope.a.input="";//将输入框置为空