Skip to content

Missing some intellisense #3

@erw13n

Description

@erw13n

I test converting component wrote in Js into Typescript, which is works fine.
Unfortunately its missing some intellisense, like 'created, methods, computed'

for example :

@Component({
    template: `
                <div>
                    <a class="cloud-package" v-bind:class="[activePackage == index ? 'active' : '']" v-for="(item, index) in packages" v-on:click="activated(index)">
					    <h2>{{ item.label }}</h2>
	    		    </a>
                </div>
            `,
    data() {
        return {
            packages: [
                { id: 1, label: 'AAA' },
                { id: 2, label: 'BBB' },
                { id: 3, label: 'CCC },
                { id: 4, label: 'DDD' }
            ],
            activePackage: null
        }
    },
    methods: {
        activated: function (item) {
            this.activePackage = item
        }
    }
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions