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

example: how to use in nuxt.js #66

Open
jawainc opened this issue Nov 17, 2019 · 3 comments
Open

example: how to use in nuxt.js #66

jawainc opened this issue Nov 17, 2019 · 3 comments
Labels

Comments

@jawainc
Copy link

jawainc commented Nov 17, 2019

Can you provide an example how to use in nuxt.js, this would be very helpful

@Hyperblaster
Copy link

Yep, is this possible?

@rahulkumarsingh73690
Copy link

Yep, is this possible?

How?

@Dryymoon
Copy link

Dryymoon commented Jan 17, 2021

How to use in nuxt with ssr

<template>
  <client-only>
     <ace-editor
       v-model="code"
       lang="html"
     />
  </client-only>
</template>

<script>
let AceEditor;
if (process.client) AceEditor = require('vue2-ace-editor');

export default {
  name: 'my-component',
  components: {
    AceEditor
  },
  data() {
   return {code: ""};
 }
}
</script>

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

No branches or pull requests

5 participants