npm install --save @ribajs/leaflet-map
To regist the module include import leafletModule from '@ribajs/leaflet-map';
in your main.ts
file and regist the module with riba.module.register(leafletModule.init());
:
import { Riba, coreModule } from '@ribajs/core';
import { leafletModule } from '@ribajs/leaflet-map';
import { ready } from '@ribajs/utils/src/dom';
const riba = new Riba();
const model = {};
riba.module.register(coreModule.init());
riba.module.register(leafletModule.init());
ready(() => {
riba.bind(document.body, model);
});