Skip to content

Instantly share code, notes, and snippets.

View alexitaylor's full-sized avatar
🚀
building cool things

Alexi Taylor alexitaylor

🚀
building cool things
View GitHub Profile
<template>
<div id="app">
<p>
Pending: {{ $store.state.getInfoPending }}
</p>
<p>
{{ $store.state.getInfoData }}
</p>
</div>
</template>
@alexitaylor
alexitaylor / vanilla-js-plugin.js
Created July 18, 2017 17:33 — forked from cferdinandi/vanilla-js-plugin.js
My starter template for vanilla JavaScript plugins.
(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
define([], factory(root));
} else if ( typeof exports === 'object' ) {
module.exports = factory(root);
} else {
root.myPlugin = factory(root);
}
})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) {