Sha256: 462c1ef1f1555b0e05b939570f9548398509c46fe05a9ca9591a06cae1818662
Contents?: true
Size: 548 Bytes
Versions: 5
Compression:
Stored size: 548 Bytes
Contents
// Generated by Vue on Rails https://github.com/vueonrails/vueonrails // A simple state management as described in https://vuejs.org/v2/guide/state-management.html var store = { debug: true, state: { message: "Hello from Simple Store!" }, setMessageAction(newValue) { if (this.debug) console.log("setMessageAction triggered with", newValue); this.state.message = newValue; }, clearMessageAction() { if (this.debug) console.log("clearMessageAction triggered"); this.state.message = ""; } }; export default store;
Version data entries
5 entries across 5 versions & 1 rubygems