INNER CODE UNIT · JavaScript

install

jamebal/jmal-cloud-view · src/components/Minder/index.js:10

const install = function (Vue, opts = {}) {
    Object.keys(MindEditor).forEach((key) => {
        Vue.component(key, MindEditor[key]);
    });
};

// auto install
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}
export default Object.assign(MindEditor, {install});   // eslint-disable-line no-undef

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…