app.controller.('firstCtrl' ,["$scope", "$state", function($scope, $state){ $scope.clickThis=function() { $state.go("second"); }}]);