set a default landing page in angular code example Example: set default route angular {path:'',redirectTo:'login', pathMatch: 'full' },