Angular ui router default route

preview_player
Показать описание
angular ui router otherwise
angular ui router default state
angular ui router set default state
angularjs ui-router default route
angularjs ui-router default state

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

In this video we will discuss how to set a default route when using ui-router in your angular application.

At the moment the problem is that, if you try to navigate to a route that is not configured, you will see only the layout page without any partial template injected into it.

To configure the default route when you are using ui-router inject $urlRouterProvider service into the config() function and use otherwise() function passing it the default route.
.config(function ($urlRouterProvider) {
})

Link for all dot net and sql server video tutorial playlists

Link for slides, code samples and text version of the video
Рекомендации по теме
Комментарии
Автор

Your Tutorials are so helpful to the beginners ... Thanks a lot Venkat!

persistencej
Автор

Sir, You are amazing.I just want to say you Thank You so much.God bless You.Sir please upload Angular 2 tutorial, Please.

sourishdutta