-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
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
Labels
No labels