This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Example implementation of a Vue V3 component wrapper for the spin.js library | |
https://spin.js.org/ | |
--> | |
<template> | |
<div ref="spinDiv"></div> | |
</template> | |
<style lang="scss"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
critService: Ember.inject.service(), | |
actions: { | |
reloadCrits() { | |
this.get("critService").loadCrits(); | |
}, | |
modifyCritVal(crit, k) { | |
crit.set(k, "ABC value"); |