@aeonrush/ngx-pathmatcher

Very small library that makes working with path in Angular Router a little easier to work with

Usage no npm install needed!

<script type="module">
  import aeonrushNgxPathmatcher from 'https://cdn.skypack.dev/@aeonrush/ngx-pathmatcher';
</script>

README

Angular path to regex UrlMatcher

Very small library that makes working with path in Angular Router a little easier to work with

Install

npm i @aeonrush/ngx-pathmatcher

How to use

import { customUrlMatcher } from '@aeonrush/ngx-pathmatcher';

const routes: Routes = [
  {
    path: '@:username',
    matcher: customUrlMatcher,
    component: UserComponent
  }
];