2👍
There’s no tool for it. Here are the basics:
:attribute="x"
orv-bind:attribute="x"
=>[attribute]="x"
for custom attributes[attr.attribute]="x"
for native HTML attributes[(attribute)]="x"
for two-way binding (inputs)
@event="x"
orv-on:event="x"
=>(event)="x"
v-for="(item, key) in items" :key="key"
=>*ngFor="let item of items;let key=index;"
v-if="x"
=>*ngIf="x"
v-else
reference moves on the*ngIf
element:*ngIf="x; else other"
and somewhere in your component you define<ng-template #other>...other content here</ng-template>
If you run into edge cases, ask, and I’ll update the answer.
You might find this useful.
- [Vuejs]-Vue.js cycle does not work
- [Vuejs]-Invalid expression passing props in vue.js template – IE11
Source:stackexchange.com