Multiple Router Outlet | Nested routes | Angular Project Layout | Angular 16

  Рет қаралды 6,021

Techshareskk

Techshareskk

Жыл бұрын

In this video you will learn
1. Advanced routes in angular
2. How nested routes works in angular 16
3. How to create a nested routes layout in angular 16
4. How to navigate and create multiple router outlets in angular 16
5. How to configure and use multiple router outlets.
6. How to work with nested routes and how to use loadchildren and children properties in angular.
Github
github.com/saikorthivada/angu...
For angular 16 Features and migration, Please check the below
• Angular 16 features wi...
For Angular 15 features, Please check the below
• Angular 15 features | ...
Angular Standalone components | Ways of using standalone components | Angular 15 | Stable release
• Angular Standalone com...
For Angular 12 features, Please check the below playlist
• Angular 12 Features
Basic Software concepts
• Playlist
For Angular Unit Testing, Please check the below playlist
• Angular Unit Testing
To know how to test basic patch value in angular watch below video
• Angular Unit testing- ...
Medium:
/ techshare-skk
Address management Angular Tutorials
Part 1 - • Reactive Form - 17 | A...
Part2 - • Reactive Form - 18 | A...
Part 3 - • Reactive Form - 19 | A...
Part 4 - • Reactive Form - 20 | A...
Part 5 - • Reactive Form - 21 | A...
Part 6 - • Reactive Form - 22 | A...
Part 7 - • Reactive Form - 23 | A...
Mandatory to watch before watching unit testing for better understanding:
(Reactive Forms Part 16 | Form Arrays removeAt method | Dynamically remove control from form array)
• Reactive Forms Part 16...
Recommend you to watch my previous videos for more information and the context.
For testing form control without any validation watch below:
• Angular Unit testing- ...
For testing, Template driven forms
• Angular Unit testing- ...
For template and template context
• Angular Unit testing- ...
For Attribute Binding testing:
• Angular Unit testing- ...
For Testing style bindings:
• Angular Unit testing- ...
For Testing class binding
• Angular Unit testing- ...
For Testing property binding
• Angular Unit testing- ...
For interpolation unit testing
• Angular Unit testing- ...
Different Types of Data binding
• Angular Data Binding |...
Interpolation in angular
• Angular Unit testing- ...
For Component introduction check the below link
• What are Angular compo...
Angular Installation and setup
• How to Configure Angul...
For ng serve mechanisum and internal flow of angular follow the link below
• Angular internal work ...
Angular Modules
• Angular Modules | What...
Angular Tutorial playlist:
• Angular Tutorials
Medium:
/ techshare-skk
For Angular 12 features, Please check the below playlist
• Angular 12 Features
Basic Software concepts
• Playlist
For Angular Unit Testing, Please check the below playlist
• Angular Unit Testing
Instagram:
/ tech.share.skk
#angular16 #angular #angularrouting #nestedroutes #latestversion #angularupdates #updates #trending

Пікірлер: 34
@marypaul9627
@marypaul9627 20 күн бұрын
Amazing, I had to subscribe
@techshareskk
@techshareskk 19 күн бұрын
That’s awesome 🤩
@bazithmohammed513
@bazithmohammed513 5 ай бұрын
Thank you very much for this excellent tutorial.
@techshareskk
@techshareskk 5 ай бұрын
Thank you 🤩
@phongnguyenthe9583
@phongnguyenthe9583 11 ай бұрын
Thanks for your tutorial, it was so clear and easy to understand. Exciting to see your upcoming video!
@techshareskk
@techshareskk 11 ай бұрын
Thank you and you can expect more and more videos soon ✌️
@saqibghouse
@saqibghouse 4 ай бұрын
Thankyou it worked. I am on angular 17 some syntax change. But thankyou very much for your help for explaining in detail
@techshareskk
@techshareskk 4 ай бұрын
✌️🎉 Thank you 🤩
@saddammd
@saddammd Жыл бұрын
Wow... I learnt so many advanced concepts in just one video. Thanks a lot.... but I am sorry I can't do more than liking and subscribing to your channel...
@techshareskk
@techshareskk Жыл бұрын
Thanks for doing this and if it is useful you can share with your technical friends that helps me to spread my technical stuff 🎉✌️
@user-rd1xe3gq5l
@user-rd1xe3gq5l 10 ай бұрын
Thanks
@maheshOffVlogs
@maheshOffVlogs Жыл бұрын
super explanaton, very helpful.
@techshareskk
@techshareskk Жыл бұрын
Thank you Mahesh ✌️
@mohamedzaki4332
@mohamedzaki4332 11 ай бұрын
✌Man You Were Very Helpful , V. Good Stuff Thanks Alot
@techshareskk
@techshareskk 11 ай бұрын
Thank you 🙏
@arjunsinghpowersoft
@arjunsinghpowersoft 6 ай бұрын
for each page why separate module? module which is something to group the pages based on features/functionality/area
@techshareskk
@techshareskk 6 ай бұрын
Here we can make each page as module and we can use them. Example - i have a module like login which i can use it as seperate module and can make that as lazy loading Same way we can manage for all the routes Advantage is until i move onto specific page the code will not be loaded into the browser which makes down the initial load time or intermediate load time.
@Nemesis_74
@Nemesis_74 4 ай бұрын
Elegant explanation❤
@techshareskk
@techshareskk 4 ай бұрын
Thank you 🤩
@GourisankarYanamalachinthala
@GourisankarYanamalachinthala 3 ай бұрын
Good video. But, why did you create a module for every component? Can't we maintain all the routes in app-routing.module.ts?
@techshareskk
@techshareskk 3 ай бұрын
If you are not creating each module for each page or each route component you will not be able to do lazy loading… If you do not do lazy loading all the components will be loaded with single chunk and the size will be too big … If size is too big it may take time lo load your UI Lazy loading helps not to load unwanted components or unused components.
@NLSAINI-he5gg
@NLSAINI-he5gg Жыл бұрын
Super bro..........
@techshareskk
@techshareskk Жыл бұрын
Thank you NLSAINI 🙏
@LarsRyeJeppesen
@LarsRyeJeppesen Жыл бұрын
Good stuff, however a few questions: how come you are using a module based app to showcase Ng16 router? Why not component/standalone based? How come you are not using the inject() function instead of injecting dependencies in the constructor? Should your router definition not be functional and use provideRouter() to configure? What about loadComponent() to lazy load components? NG16 brings so many cool improvements to the table that it's strange to see you not use any of them
@techshareskk
@techshareskk Жыл бұрын
Thats good question, actually speaking im covering both type of cases wherever it is required. you can see my previous videos i already explained about loadComponent, I spoke about inject and also i spoke about standalone. My agenda is to share my knowledge in all the aspects which should help legacy applications and newer applications. Coming to inject will discuss more once i start series or playlist on services and injectables. FYI. Thanks for asking. Many people may have same questions and this may give my ideology to them as well.
@akshatmathur6371
@akshatmathur6371 11 ай бұрын
How to do the same thing using standalone approach?
@techshareskk
@techshareskk 11 ай бұрын
Can you check this for nested. I think i dint make this for multiple routes. I will make a note and will do that as well. kzbin.info/www/bejne/b5qkaneGqbFngdE
@sidakgujral2768
@sidakgujral2768 9 ай бұрын
Man u are doing great but please slow down the pace a little bit otherwise all awesome
@techshareskk
@techshareskk 9 ай бұрын
Noted
@user-shwan
@user-shwan 9 ай бұрын
Thank you for sharing! It was really helpful :) I have a done something different in the past and would love to see your opinion to see which approach you would prefer for an enterprise application please? Thank you! export class AppComponent { isDashboardRouteActive = false; isAdminRouteActive = false; constructor(private router: Router) { router.events.subscribe((event) => { if (event instanceof NavigationEnd) { this.isDashboardRouteActive = event.url.includes('dashboard'); this.isAdminRouteActive = event.url.includes('admin'); } }); } }
@techshareskk
@techshareskk 9 ай бұрын
This approach works but not much useful Instead create lay outing one for dashboard and one for admin and use multiple router outlets. Problems in the above code 1. For each navigation the subscription logic executes. As you mentioned your application is enterprise application you may have many many URLs in your application that calls the subscription logic hundreds of time and execute your if condition always when there is change in variable. 2. In future if some or the developers use admin/dashboard even then also your isDashboardRouteActive will become true hence all your dev folks should aware not to use dashboard keyword anywhere in the URLs. That means you are restricting not to use this at all 3. If you get some other requirement to have some other routes something like user role and the. You have to add one more condition it would be hard to manage all such rules in the future Better to avoid this This is my opinion. If you really means to you. Try the multiple router concept and manage your routing configuration Thank you 🙏
@techshareskk
@techshareskk 9 ай бұрын
Event in future you may have two different footers then again you have to manage that too on conditional basis This is one more problem
@user-shwan
@user-shwan 9 ай бұрын
​@@techshareskk, very convincing answer! I totally agree. Thankyou so much for the long answer. Much appreciated :)
@user-shwan
@user-shwan 9 ай бұрын
@@techshareskk, that's right! That's going to be an extra one to manage. Thank you so much for explaining.
Can Activate guard | Guards in angular | Angular 16
21:55
Techshareskk
Рет қаралды 13 М.
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 7 МЛН
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 27 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 17 МЛН
Multiple Router Outlets in Angular using Named Outlets (2021)
18:41
Decoded Frontend
Рет қаралды 43 М.
Named Multiple Router-Outlet (Auxiliary Router-Outlet) Angular
1:11:18
Dotnetist Enterprise
Рет қаралды 127
Angular 17 Tutorial - Routing | Dynamic Routing | Nested Routing #15
29:45
Programming with Umair
Рет қаралды 523
Reactive Form Validation in Angular: Mastering Best Practices
13:08
Monsterlessons Academy
Рет қаралды 4,2 М.
Angular 16 Tutorial - Routing with Dynamic and Nested Routes #15
35:21
Programming with Umair
Рет қаралды 3,3 М.
Routing in Angular 17 and Lazyload Standalone Components
13:54
Adnan Halilovic
Рет қаралды 14 М.
How to Setup Angular Project | Folder Structure | Angular 17
29:26
LEARNING PARTNER
Рет қаралды 3,2 М.
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 62 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 258 М.
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 132 М.
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1 МЛН