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