Case sensitivity with angularjs ui router

preview_player
Показать описание
angular ui router case insensitive

In this video we will discuss how to make routes that are configured using ui-router case-insensitive.

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.

The routes that are configured using ui-router are case sensitive by default. For example, consider the state below. Notice the url (/home) is lowercase.

$stateProvider
.state("home", {
url: "/home",
controller: "homeController",
controllerAs: "homeCtrl"
})

If you type the following URL, then you will see a blank layout page. This is because, by default routes are case-sensitive

To make the routes case-insensitive inject $urlMatcherFactoryProvider service into the config function and call caseInsensitive(true) function passing a value of true.

var app = angular
.config(function ($urlMatcherFactoryProvider) {
})

Link for all dot net and sql server video tutorial playlists

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

You are best teacher I ever seen.Thx kudvenkat.I hate javascript but its frameworks like jQuery and Angular are awesome.Please make more Angular series.Your videos are very helpful for us..

suleymanov
Автор

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

persistencej
Автор

Sir Please upload the videos of SSRS, SSIS, SSAS also.

gagandeepsingh
Автор

sir please make title like
Angular js part 46 Case sensitivity with angular js ui router.
Angular js part 47 title of the part ..
Angular js part 48 title of the part ..

its ease to remember without playing video..

surinder