How to use the vue-class-component.default function in vue-class-component

To help you get started, we’ve selected a few vue-class-component examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mrellipse / toucan / src / ui / app / root / signup / signup.ts View on Github external
import Vue from 'vue';
import { Store } from 'vuex';
import { State } from 'vuex-class';
import { default as Component } from 'vue-class-component';
import { IVuelidate, ValidationRuleset, Vuelidate, validationMixin } from 'vuelidate';
import { ICommonOptions } from '../../plugins';
import { AuthenticationService } from '../../services';
import { ISignupOptions, IUser } from '../../model';
import { IRouterMixinData } from '../../mixins/mixin-router';
import { ICommonState, StoreTypes } from '../../store';
import { validations, TSignup } from './signup-validate';

@Component({
    mixins: [validationMixin],
    name: 'Signup',
    template: require('./signup.html'),
    validations: validations
})
export class Signup extends Vue {

    private auth: AuthenticationService;

    @State((state: {common:ICommonState}) => state.common.user) user: IUser;

    constructor() {
        super();
    }

    created() {

vue-class-component

ES201X/TypeScript class decorator for Vue components

MIT
Latest version published 4 years ago

Package Health Score

67 / 100
Full package analysis