Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 76 characters in body
Source Link
user5520341
user5520341

I have a specific logic sequence in my app, and I want a simple way to force my app to start from the welcome page. I am using this:

$urlRouterProvider.otherwise('/pages/welcome'); 

But it doesn't work properly whenthe problem is that otherwise just play with the unknown URLs and redirect them to the welcome, whereas I refresh my internal pagewant to redirect to the welcome in all cases, this cause some error for not initiated variableseven in the registered states.

I have a specific logic sequence in my app, and I want a simple way to force my app to start from the welcome page. I am using this:

$urlRouterProvider.otherwise('/pages/welcome'); 

But it doesn't work properly when I refresh my internal page, this cause some error for not initiated variables.

I have a specific logic sequence in my app, and I want a simple way to force my app to start from the welcome page. I am using this:

$urlRouterProvider.otherwise('/pages/welcome'); 

the problem is that otherwise just play with the unknown URLs and redirect them to the welcome, whereas I want to redirect to the welcome in all cases, even in the registered states.

Source Link
user5520341
user5520341

AngularJS force app to start from specific URL

I have a specific logic sequence in my app, and I want a simple way to force my app to start from the welcome page. I am using this:

$urlRouterProvider.otherwise('/pages/welcome'); 

But it doesn't work properly when I refresh my internal page, this cause some error for not initiated variables.