Giter Site home page Giter Site logo

Comments (9)

hartmut-co-uk avatar hartmut-co-uk commented on June 12, 2024

Happy to contribute, can anyone point directions?
Would/Should it need to be added to nuxt-class-component - and used in here to replace vue-class-component - as it's nuxt specific?

from nuxt-property-decorator.

hartmut-co-uk avatar hartmut-co-uk commented on June 12, 2024

pls see https://cmty.app/nuxt/nuxt-class-component/issues/c8

from nuxt-property-decorator.

breakingrobot avatar breakingrobot commented on June 12, 2024

@hartmut-co-uk Please open a pull request, I will be happy to merge it asap :)

from nuxt-property-decorator.

hartmut-co-uk avatar hartmut-co-uk commented on June 12, 2024

First need to find a solution :-) will have to wait for the issue raised with nuxt-class-component to respond I think.

Many thanks for the reply though!

from nuxt-property-decorator.

hartmut-co-uk avatar hartmut-co-uk commented on June 12, 2024

note - I think this will all be covered/resolved with nuxt/nuxt#4164

from nuxt-property-decorator.

husayt avatar husayt commented on June 12, 2024

This is resolved with latest v2.1.3
We added

  • watchQuery
  • key
  • loading

from nuxt-property-decorator.

shalldie avatar shalldie commented on June 12, 2024

watchQuery can't work with v2.1.3

I tried it like this:

import { Vue, Component } from 'nuxt-property-decorator';


@Component({
     ...
})
export default class IndexPage extends Vue {

    watchQuery: string[] = ['label', 'page'];
...

So strange, i see other hooks like asyncData works well, but watchQuery does nothing when query changes.

from nuxt-property-decorator.

Ettapp avatar Ettapp commented on June 12, 2024

Better late than never: It should be put in the @Component decorator option parameter, like so:

@Component({
    watchQuery: ['label', 'page'],
})
export default class IndexPage extends Vue {
    // ...
}

from nuxt-property-decorator.

shalldie avatar shalldie commented on June 12, 2024

Better late than never: It should be put in the @Component decorator option parameter, like so:

@Component({

    watchQuery: ['label', 'page'],

})

export default class IndexPage extends Vue {

    // ...

}

Thx hahaha

from nuxt-property-decorator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.