Learn Angular: Angular Navigation Redirects and Page Not Found
Want to learn Angular? in this video, "Learn Angular: Angular Navigation Redirects and Page Not Found", you'll learn how to redirect navigation routes and provide a custom page not found rediect in your Angular application.
When performing basic route navigation in an Angular 9 application, handling page not found (also known as error 404) and redirecting routes to other routes is a very common task. Luckily for us Angular make this really easy for us.
To redirect a route, simply set the "redirectTo" property of a path, to the path of the desired route. For example; to redirect the default path of your Angular application to a products route, simple define a redirected route as follows
{ path: "", redirectTo: '/products', pathMatch: 'full' },
Sometimes when navigating your Angular application, a user may try to navigate to a route that does not exist. This will result in a 404 error, or a "Page Not Found" error. Ideally when this occurs, you will send your user to a page with details about the failed navigation. To do this, you will use a "wild card" route to intercept invalid URLs and handle them gracefully.
A wildcard route has a path consisting of two asterisks. It matches every URL. The router will select this route if it can't match a route earlier in the configuration. A wildcard route can navigate to a custom "404 Not Found" component or redirect to an existing route.
{ path: "**", component: PageNotFoundComponent }
"Desktop to Web: A WPF Developers Guide to Learning Angular" is a video tutorial series that will help you take your WPF and WinForms desktop coding skill to the web with Angular. This series will help you understand how your current desktop skills map directly to concepts in Angular to make your learning path to the web as easy and painless as possible.
During each video in this series I will be giving away a one year subscription to Infragistics Ultimate valued at $1,995 USD. Simply subscribe to my channel, like the video, and leave a comment to be entered. Winners are announced in the next video in the series.
Official contest rules: https://brianlagunas.com/desktop-to-web-series-youtube-official-contest-rules/
The Prize: https://www.infragistics.com/products/ultimate
Follow Me:
Twitter: https://twitter.com/brianlagunas
Twitch: https://www.twitch.tv/brianlagunas
Blog: http://brianlagunas.com
GitHub: https://github.com/brianlagunas
Sponsor Me:
https://github.com/sponsors/brianlagunas
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Learn Angular: Angular Navigation Redirects and Page Not Found», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.