0

is possible to do something with Angular route like this

    {
        path: 'my-',
        loadChildren: './pages/my-stuff/my-stuff.module#MyStuffPageModule'
    },

then when I navigate with different paths like my-orders, my-repairs.. this match with the same route?

thanks

Stanislav Dontsov
  • 1,591
  • 11
  • 24
Hanzo
  • 1,839
  • 4
  • 30
  • 51

1 Answers1

0

You can use URL matcher function of Route object.

The matcher function returns UrlMatchResult Object or falsy value conditionally.

https://angular.io/api/router/Route#matcher

If you are going to use this, you can't use path field.

Here is an example to begin with. https://stackblitz.com/edit/angular7-routes-5upyij

Ms.Tamil
  • 350
  • 1
  • 14