---
# System prepended metadata

title: Angular 語法對應 ( with Vue || Java )
tags: [Angular]

---

---
title: Angular 語法對應 ( with Vue || Java )
tags: Angular
---


# Angular 語法

* *ngFor="let item of list; index as i" (index起始為0)
```
--- Java 版本 ---
    int i = 0;
    for (Object item : list) {
        ...
        i++;
    }
```
```
--- VueJS 版本 ---
    v-for="(item, index) in list"
```