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.

18 lines (17 loc) 395 B
/*! * NENT 2022 */ import { EventEmitter } from '../../../services/common/emitter'; /* It's a data provider that gets its data from the current route */ export class RoutingDataProvider { constructor(accessor) { this.accessor = accessor; this.changed = new EventEmitter(); } async get(key) { return this.accessor(key); } async set(_key, _value) { // Do nothing } }