Skip to content

Migrating from vue-class-component #55

@nseb

Description

@nseb

Hello ,
with vue-class-component, it's works :
@ComponentBase({
name: 'UMBaseComponent'
})
export default class UMBaseComponent extends Vue {
$q: QVueGlobals = useQuasar();
quasar : QVueGlobals = useQuasar();
....

@component({
name: 'LoginAvatar',
components: {Avatar, AccountPanel, Languages, Notifications, FollowedDriversPanel}
})
export default class LoginAvatar extends mixins(UMBaseComponent, AuthComponent) {
darkMode = this.quasar.dark.isActive;
...

with vue-facing-decorator , there is an error ; this.quasar is undefined , I know I can change the code , but I would like understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions