@nent/core
Version:
18 lines (17 loc) • 395 B
JavaScript
/*!
* 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
}
}