{ path: '', pathMatch: 'full', redirectTo: 'path' },

      Typescript language logo
      your recipe card header background
      Angular Route Path Default

      Angular TypeScript Recipes

      The first line declares a path variable, which will store the full path to the file or directory we are working with. The second line tells the router that the path should be matched in full, and if it isn't then the router should redirect us to the path we specified. The final line tells the router to redirect us to the path defined in pathMatch.

      Shortcut: angular.routes.path.default

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.