@sureshtellakula wrote:
Hi,
Requirement:is when i click logon button in login page,it should display home page but i am not able display home page.code:
var app=angular.module('todo', ['ionic', 'ui.router'])app.config(function($stateProvider, $urlRouterProvider) {
// $urlRouterProvider.otherwise('/');$stateProvider.state('main', {
url: '/',
abstract: true,
templateUrl: 'template/main.html'
})
})Inside controller and login function below code written:
$state.go('main');
$state passing from controller.
Please let me know the what could be the wrong in my code.
regards,
suresh
Posts: 14
Participants: 3