native-spa-route
Version:
provide SPA route's experience with native web component
20 lines (14 loc) • 415 B
text/typescript
import './components/route';
import './components/route-container';
import { hook_a_link, hook_history_change } from './lib/hooks';
let initted = false;
export const version = '0.2.12';
export function preload() {
if (initted) return;
initted = true;
hook_a_link();
hook_history_change();
}
export * from './lib/hooks';
export * from './components/route';
export * from './components/route-container';