angular.module(“kalgudiApp”,[“restangular”,“ui.router”,“mgcrea.ngStrap”,“kalgudiApp.config”,“kalgudiApp.myconnects”,“kalgudiApp.mybusiness”,“kalgudiApp.myaccounts”,“ui.bootstrap”,“ngTagsInput”,“kalgudiApp.mycontent”,“kalgudiApp.ccp”,“ionic”,“angularFileUpload”])
.config(["$stateProvider","$urlRouterProvider",“themeBasePath”,“RestangularProvider”,
function($stateProvider,$urlRouterProvider,themeBasePath,restangular) {
$stateProvider.state('home', {
url: '/home/:slideindex',
views: {
content: {
templateUrl: themeBasePath+'mycontent/snippetsList.html',
controller: 'mycontentInboxController'
},connects: {
templateUrl: themeBasePath+'myconnects/inbox.html',
controller: 'myconnectsinboxController'
},business: {
templateUrl: themeBasePath+'mybusiness/inboxList.html',
controller : "mybusinessInboxController",
},
ca: {
templateUrl: themeBasePath+'canvassingAgent/caInbox.html',
controller : "canvassingAgentInboxController",
},
accounts:{
templateUrl: themeBasePath+'myaccounts/inboxList.html',
controller : "accountsInboxController",
}
},
data:{
action : "home",
moduleAction : "home",
currentmodule : "home"
}
})
.state('profile', {
url: "/profile",
templateUrl: themeBasePath+'myprofile/home.html',
controller: 'profilesController',
data : {
action : "myprofile",
module : "myprofile",
currentmodule : "myprofile"
}
})
.state('advanceSettings', {
url: "/advanceSettings",
templateUrl: themeBasePath+'myprofile/advanceHome.html',
controller: 'advanceSettingsController',
data:{
action : "advancehome",
moduleAction : "advancehome",
currentmodule : "myprofile"
}
})
.state('kalgudi404', {
url: '/404Error',
templateUrl: themeBasePath+'shared/error.html',
data:{
action : "404Error",
moduleAction : "404Error",
currentmodule : "myprofile"
}
})
.state('kalgudi503', {
url: '/503Error',
templateUrl: themeBasePath+'shared/503error.html',
data:{
action : "503Error",
moduleAction : "503Error",
currentmodule : "myprofile"
}
})
.state('libraries', {
url: '/libraries',
templateUrl: themeBasePath+'shared/libraries.html',
controller : "librariesController",
data:{
action : "libraries",
moduleAction : "libraries",
currentmodule : "libraries"
}
})
.state('libraries.contacts', {
url: '/contacts',
templateUrl: themeBasePath+'shared/librariesContacts.html',
controller : "librariesContactsController",
data:{
action : "librariesContacts",
moduleAction : "librariesContacts",
currentmodule : "librariesContacts"
}
})
.state('libraries.camera', {
url: '/camera',
templateUrl: themeBasePath+'shared/librariesCamera.html',
controller : "librariesCameraController",
data:{
action : "librariesCamera",
moduleAction : "librariesCamera",
currentmodule : "librariesCamera"
}
})
.state('libraries.voice', {
url: '/voice',
templateUrl: themeBasePath+'shared/librariesVoice.html',
controller : "librariesVoiceController",
data:{
action : "librariesVoice",
moduleAction : "librariesVoice",
currentmodule : "librariesVoice"
}
})
.state('libraries.geolatlang', {
url: '/geolatlang',
templateUrl: themeBasePath+'shared/librariesGeolatlang.html',
controller : "librariesGeolatlangController",
data:{
action : "librariesGeolatlang",
moduleAction : "librariesGeolatlang",
currentmodule : "librariesGeolatlang"
}
})
.state('libraries.sendsms', {
url: '/sendsms',
templateUrl: themeBasePath+'shared/librariesSendsms.html',
controller : "librariesSendsmsController",
data:{
action : "librariesSendsms",
moduleAction : "librariesSendsms",
currentmodule : "librariesSendsms"
}
})
.state('libraries.addressbook', {
url: '/addressbook',
templateUrl: themeBasePath+'shared/librariesAddressbook.html',
controller : "librariesAddressbookController",
data:{
action : "librariesAddressbook",
moduleAction : "librariesAddressbook",
currentmodule : "librariesAddressbook"
}
})
.state('searchincontent', {
url: '/searchincontent',
templateUrl: themeBasePath+'shared/searchincontent.html',
controller : "searchController",
data:{
action : "searchincontent",
moduleAction : "searchincontent",
currentmodule : "searchincontent"
}
})
.state('TandC', {
url: '/TandC',
templateUrl: themeBasePath+'shared/TandC.html',
controller : "tandccontroller",
data:{
action : "TandC",
moduleAction : "TandC",
currentmodule : "TandC"
}
})
.state('TandC_category', {
url: '/TandC/:category',
templateUrl: themeBasePath+'shared/TandC_category.html',
controller : "tandccontroller",
data:{
action : "TandC_category",
moduleAction : "TandC_category",
currentmodule : "TandC_category"
}
})
All these states html are loading at first one i run my app. I want only first state needs to load. Its working fine with version 0.9.26 and in this way i am calling it on my index html.