UNPKG

@nent/core

Version:

Functional elements to add routing, data-binding, dynamic HTML, declarative actions, audio, video, and so much more. Supercharge static HTML files into web apps without script or builds.

4 lines 316 B
/*! * NENT 2022 */ import{c as o}from"./index-4bfabbbd.js";const t=o({router:null,location:null,hasExactRoute:!1,debug:!1}),{state:a,onChange:e}=t;let s=!1;e("router",(o=>{o&&0==s&&(o.eventBus.on("*",(()=>{a.hasExactRoute=!1,a.location=o.location,a.hasExactRoute=o.hasExactRoute()})),s=!0)}));export{e as o,a as s}