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

Passing config when using .vue #14

Closed
barrachri opened this issue Jul 5, 2017 · 3 comments
Closed

Passing config when using .vue #14

barrachri opened this issue Jul 5, 2017 · 3 comments

Comments

@barrachri
Copy link

barrachri commented Jul 5, 2017

Hello, starting from this example

<template>
  <nprogress-container></nprogress-container>
</template>

<script>
import NprogressContainer from 'vue-nprogress/src/NprogressContainer'

export default {
  components: {
    NprogressContainer
  }
}
</script>

how can you pass a config?
Specifically I'd like to remove the spinner ({ showSpinner: false })

@lethak
Copy link

lethak commented Aug 23, 2017

You can always try to change the settings after it is created and before it is rendered

this.$nprogress.settings.showSpinner = false

I just tested and it seems to work

@whoisjorge
Copy link

I know that's probably not what you want to achieve, but you can always do it as hard as easy with CSS rules like: visibility: hidden, opacity: 0, or diplay: none on the .spinner class!

#nprogress.spinner {
  /* Hardcore choice */
  visibility: hidden;
  opacity: 0;
  display: none;
}

@barrachri
Copy link
Author

Thanks :)

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

3 participants