Angular Router and Guards

Santosh Yadav

GDE for Angular

Writer indepth.dev, Mentor DotNetTricks

@SantoshYadavDev

TechTalksWithSantosh

Prerequisites

  • Angular Template
  • Angular Component

Setup Router

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
  • Configuration
  • Lazy Loading
  • ActivatedRoute
  • Router
  • Router Events
  • CanActivate
  • CanActivateChild
  • CanDeactivate
  • Resolve
  • CanLoad

Route GuardsĀ 

Thank You

@SantoshYadavDev

TechTalksWithSantosh

Angular Router and Guards

angular router and route guards

By Santosh Yadav

angular router and route guards

  • 89
Loading comments...

More from Santosh Yadav