0.3.5 • Published 1 year ago

@xeito/router v0.3.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Xeito Router

This is the Router library for Xeito Framework. Provides a simple yet powerful router for web applications built with Xeito.

To find the full documentation and more links go to the main README file.

Exports:

Classes:

  • XeitoRouterPlugin: The Router Plugin class, intented to be registered in a Xeito application.

Example:

import { Xeito } from '@xeito/core';
import { XeitoRouterPlugin } from '@xeito/router';
import { AppComponent } from './app-component.ts';

const app = new Xeito(AppComponent);
app.usePlugin(XeitoRouterPlugin, {
  routes: [
    {
      path: '/',
      component: HomeComponent,
    },
    {
      path: '/about',
      component: AboutComponent,
    },
  ],
});

app.bootstrap();

Components:

  • RouterSlot: The component that renders the current route component (and nested views).
  • RouterLink: Helper component to create links from the template.

Interfaces

  • Route: The interface for injectable metadata (decorator).
  • RouteGuard: The interface for route guards.
  • RouterOptions: The interface for the Router Plugin options (see example above).
  • XeitoRouter: The interface for the XeitoRouter global property
0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago