结构指令
1, 遍历指令
1 | <div *ngFor="let product of products"> |
2,流程判断指令
1 | <p *ngIf="product.descript"></p> |
不为空则输出
3,文本绑定输出
1 | <h3> |
4 标签属性绑定
1 |
|
5,事件点击绑定
1 | <button (click)="share()"> |
更多模板语法
1 | <div *ngFor="let product of products"> |
1 | <p *ngIf="product.descript"></p> |
不为空则输出
1 | <h3> |
1 |
|
1 | <button (click)="share()"> |
更多模板语法
微信支付
支付宝