定义了一个页面
.state('test', {
url: '/test',
templateUrl: 'templates/test.html',
controller: 'testCtrl'
})
$state.go("test",{}, {reload: true});
.controller('testCtrl', function($scope,$state,$window) {
$scope.loadData= function() {
alert(123);
}
$scope.loadData();
})