Angular 數據傳遞

1: 點擊序號 , 出現相應的詳情頁面在同一個頁面中 , hero-list-component.ts  selectedHero: Hero; onSelect(hero: Hero): void { this.selectedHero = hero; } hero-list-html <div *ngIf="heroes.length"> <ul class="heroe
相關文章
相關標籤/搜索