Core Module - About

Core Module

Install

npm install --save @ribajs/core

Regist

To regist the module include import coreModule from '@ribajs/core'; in your main.ts file and regist the module with riba.module.regist(coreModule);:

import { Riba, Utils, coreModule } from '@ribajs/core';
const riba = new Riba();
const model = {};
riba.module.regist(coreModule);
Utils.domIsReady(() => {
  riba.bind(document.body, model);
});