Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Not able to display home page from login

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>