2018年5月18日 星期五

Angular {{Interpolation}}(內嵌繫結)(05)

html部分
 <a href="{{url}}">{{ title }}</a>
ts部分
 export class InterpolationComponent implements OnInit {
  title = "{{內嵌繫結}}";
  url = "http://tw.yahoo.com";
  constructor() {   
  }
  ngOnInit(): void {
  }
}
參考資料
1.保哥的Angular 開發實戰:從零開始
2.Angular官網