Any issues in this controller function?

when i use routers without controllers then my routers are working fine but when i add controllers in it. then my routers stop working… can anyone please tell me about my issues in routers functions?

LOGIN CONTROLLER:
angular.module(‘starter’, [‘ionic’])
.controller(‘LoginCtrl’, function($scope, LoginService, $ionicPopup, $state) {

  $scope.login = function() {
    console.log("LOGIN user: " + $scope.username + " - PW: " + $scope.password);

    LoginService.loginUser($scope.username, $scope.password).success(function(data) {
      console.log("Login Successful");
        $state.go('home');
    }).error(function(data) {
        var alertPopup = $ionicPopup.alert({
            title: 'Login failed!',
            template: 'Please check your credentials!'
        })
    })
  }

});

ROUTERS CODE

angular.module('starter', ['ionic'])
.config(function($stateProvider, $urlRouterProvider) {
        $stateProvider
            .state('home', {
                url: '/home',
                templateUrl: 'page2.html',
                controller: 'HomeCtrl'
            })
             .state('login', {
                url: '/login',
                templateUrl: 'index.html',
                controller: 'LoginCtrl'
            })

        $urlRouterProvider.otherwise('/login');
    });

and you have already a home controller?

please show us some error message

basically my state routers is not working properly and every time default router is running i watched console log to see errors but there is no error everything is working fine my default routers and controllers too but i want to run state routers … $urlRouterProvider.otherwise(’/login’); only this router is running … can you help in this? this is my code for routers.

angular.module('starter')
.config(function($stateProvider, $urlRouterProvider) {
        $stateProvider
            .state('home', {
                url: '/home',
                templateUrl: 'page2.html',
                controller: 'HomeCtrl'
            })
             .state('login', {
                url: '/login',
                templateUrl: 'index.html',
                controller: 'LoginCtrl'
            })
           
        $urlRouterProvider.otherwise('/login');
    });

i have included links of routers

is there any other link for state routers?