How to use the omi.Store function in omi

To help you get started, we’ve selected a few omi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Tencent / omi / example / md2site / template / app / src / js / app-store.js View on Github external
import Omi from 'omi';
import config from '../docs/config.js';
import proj_config from '../../project.js';

class AppStore extends Omi.Store {
    constructor(data, isReady) {
        super(isReady)
        /*
         this.data =
         {
             html: '<h1>hello</h1>',
             md: 'components'
             lan: 'cn',
             menus:[
                 {
                     active: true,
                     title: '���ٿ�ʼ',
                     currentIndex: 0,
                     list: [
                         {name: '��װ', md: 'installation', index: 0, active: true},
                         {name: '���', md: 'components'},

omi

<p align="center"><img src="https://omijs.github.io/home/assets/logo.svg" alt="omi" width="100"/></p> <h2 align="center">Omi - Web Components Framework</h2>

MIT
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis