angular

前端之家收集整理的这篇文章主要介绍了angular前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
import { Component } from ‘@angular/core‘; @Component({ selector: ‘my-comp‘, template: ‘<ul><li *ngFor=‘let row of dataList‘>ID:{{row.id}} INFO:{{row.info}}</li></ul>‘, styles: [`ul{padding-left: 10px;list-style: none;}`] }) export class MyComponent { dataList = [ { id: 1, info: "Angular" }, { id: 2, info: "React" }, { id: 3, info: "Vue" } ]; }

猜你在找的Angularjs相关文章