Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
themustafaomar committed Mar 17, 2023
1 parent b4880de commit ba10040
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,23 @@ In your component just declare `v-milsymbol` then add your options.
<template>
<v-milsymbol
ref="msymbol"
sidc="sfgpewrh--mt"
:sidc="sidc"
:options="{ size: 50 }"
>
</v-milsymbol>
</template>

<script>
export default {
data: () => ({
sidc: 'sfgpewrh--mt'
}),
mounted() {
console.log(this.$refs.msymbol.getInstance())
// To change symbol automatically you just
// need to change the sidc and it'll change Immediately
setTimeout(() => this.sidc = '10031000000000000000', 1000)
}
}
</script>
Expand Down

0 comments on commit ba10040

Please sign in to comment.