var app = angular.module('groveusCms', ['ngRoute' ,'angularUtils.directives.dirPagination']); app.config(function($routeProvider) { $routeProvider .when('/dashboard', { templateUrl: 'dashboard/admin', }) .when('/about', { templateUrl: 'dashboard/about', }) .when('/aeps', { templateUrl: 'aeps', controller: 'aeps/ctrl_aeps.js' }) .when('/balance_enquiry', { templateUrl: 'aeps/balance_enquiry', controller: 'aeps/ctrl_aeps.js' }) .when('/cash_withdrawal', { templateUrl: 'aeps/cash_withdrawal', controller: 'aeps/ctrl_aeps.js' }) .when('/mini_statement', { templateUrl: 'aeps/mini_statement', controller: 'aeps/ctrl_aeps.js' }) .when('/cash_deposit', { templateUrl: 'aeps/cash_deposit', controller: 'aeps/ctrl_aeps.js' }) .when('/aadhar_pay_withdrawal', { templateUrl: 'aadhar/aadhar_pay_withdrawal', controller: 'aadhar/ctrl_aadhar.js' }) .when('/dmt_money_transfer', { templateUrl: 'dmt/dmt_money_transfer', controller: 'dmt/ctrl_dmt.js' }) .when('/aaa', { templateUrl: 'dashboard/aaa', }) .when('/contact', { templateUrl: 'contact/test', }) // .otherwise({ // redirectTo: '/dashboard' // }); .otherwise('/dashboard') });//blank line is required app.controller('ctrl_contact',function($scope,$http){ });//blank line is required app.controller('ctrl_aeps',function($scope,$http){ console.log("aeps executed"); });//blank line is required app.controller('ctrl_dmt',function($scope,$http){ });//blank line is required app.controller('ctrl_aeps',function($scope,$http){ });//blank line is required app.controller('ctrl_dashboard',function($scope,$http){ $http.get("dashboard/fetch_cards_data").success(function(data){ $scope.cactivity_row=data['cactivity_row']; // $scope.product_row=data['product_row']; // $scope.cat_row=data['cat_row']; // $scope.wishlist_row=data['wishlist_row']; // $scope.search_row=data['search_row']; // $scope.seller_row=data['seller_row']; // $scope.email_row=data['email_row']; // $scope.user_row=data['user_row']; // $scope.news_row=data['news_row']; // $scope.pickdrop_row=data['pickdrop_row']; // $scope.pickdrop_completed=data['pickdrop_completed']; // $scope.pickdrop_cancelled=data['pickdrop_cancelled']; // $scope.pickdrop_cancel_requested=data['pickdrop_cancel_requested']; // $scope.cart_row=data['cart_row']; // $scope.cart_completed=data['cart_completed']; // $scope.cart_cancelled=data['cart_cancelled']; // $scope.cart_cancel_requested=data['cart_cancel_requested']; // $scope.birthdays=data['bday']; $scope.customers_row=data['customers_row']; $scope.investments=data['investments']; }); });