native-spa-route
Version:
provide SPA route's experience with native web component
16 lines (15 loc) • 426 B
JavaScript
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';