Step 1: Create a user folder then create a component user.profile.component.ts user.module.ts user.routes.ts routes.ts nav-bar.component.html
Tag: routes
Guarding Route De-activation
event-route.activator.service.ts routes.ts app.module.ts
Guarding Route Activation
event-route.activator.service.ts routes.ts app.module.ts
Navigation from menu
Step 1: create a component like create-event.component.ts Step 2: routes.ts file Step 3: createEventComponent component register in app.module.ts file Step 4: add router link in nav html file
Adding your first route
Step 1: events-app.component.ts file Step 2: routes.ts file Step 3: app.module.ts file Register router for routing Step 4 : index.html Step 5: event-details.component.ts file Step 6: event.service.ts file Step 6: app.module.ts file Register event details file
Linking routes and accessing routes parameters
Step 1: event-details.component.ts file Step 2: event-thumbnail.component.ts file Step 3: nav-bar.component.html file