Angular 1.2 數據集綁定與點擊事件

    組件:css         (1).數據集綁定。html          1.咱們先新建mock-heroes.ts 來模擬數據源,用來綁定頁面顯示。函數                       2.而後咱們回到heroes.component.ts 對模擬數據進行引用。code                      3.在heroes.component.html 綁定並顯示
相關文章
相關標籤/搜索