Angular 003 绑定 Binding
- 单向数据绑定
export class NgBindingComponent implements OnInit {
public title:string="我是标题";
public userInfo:any={
tel:10086,
userName:"Derek"
}
public rockMusic:any[]=[
{
rockType:"Punk",
band:"反光镜",
music:"还我蔚蓝"
},
{
rockType:"Psychedelic",
band:"麻园诗人",
music:"海市"
},
{
rockType:"Disco&