Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include in vue.js component: how? #128

Open
edellaq opened this issue Aug 23, 2019 · 1 comment
Open

include in vue.js component: how? #128

edellaq opened this issue Aug 23, 2019 · 1 comment

Comments

@edellaq
Copy link

edellaq commented Aug 23, 2019

I'm trying to use teoria within a Single Page Application I'm (re)writing using Vue.js...
Any suggestion on how to proceed importing the various modules?

@martijnmichel
Copy link

Its very easy.
Try it out on CodeSandbox!

<script>
import teoria from "teoria";
const note = teoria.note;
const int = teoria.interval;
export default {
  name: "HelloWorld",
  computed: {
    note() {
      return note("a4")
        .interval('m3')
        .chord('m#11').simple()
    }
  }
};
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants