Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.63 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.63 KB

Table of Contents

Raven

Singleton.

Raven.on

PUB/SUB Pattern. Topic listener that triggers a callback when the particular topic is published.

Parameters

Raven.emit

PUB/SUB Pattern.

Parameters

Raven.component

Component factory method

Parameters

  • componentName string Component name
  • config Object Component configurations

Examples

Raven.component("Button", {
        el: ".button", 
        data() {  
            return {
                buttonName: 'button-click'
            }
        },
        methods: {
            buttonClick() {
                alert("CLICKED");
            }
        }
    });

Returns Object The custom component