Learn Angular: Angular Route Navigation смотреть онлайн
Want to learn Angular? In this video, "Learn Angular: Angular Route Navigation", you'll learn how to use Angular route navigation to navigate in components in your Angular application.
Navigation may be considered on of the most important concepts in an Angular 9 application. Luckily, route navigation is extremely easy to implement. Implementing basic route navigation in Angular 9 requires just a few steps.
Step 1:
Make sure that your index.html file has a Base element defined with a "/" as the href.
Step 2:
Next, you must have Angular components to navigate to. Create a couple of components that you can use for navigation. In this sample, we created components for "users' and "products" using the following commands
"ng g c users"
"ng g c products"
Step 3:
Now, open your app.module.ts file and import the RouterModule from the @angular/router package.
import { RouterModule } from '@angular/router'
In the imports array of the ngModule decorator, add the following code:
RouterModule.forRoot([
])
Step 4:
Define your routes for your navigation
RouterModule.forRoot([
{ path: "products", component: ProductsComponent},
{ path: "users", component: UsersComponent},
])
Step 5:
Add the "router-outlet" directive to your template. The RouterOutlet is a directive from the router library that is used like a component. It acts as a placeholder that marks the spot in the template where the router should display the components for that outlet.
router-outlet /router-outlet
Step 6:
In order to perform the navigation based on user interaction, use the "routerLink" directive on your buttons or links.
div
button routerLink="/products" Nav to Products /button
button routerLink="/users" Nav to Users /button
/div
"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 Route Navigation» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.