December 2017
Beginner
372 pages
10h 32m
English
The responsibility of the Homepage component is twofold:
The following is the code for our Homepage component:
export class HomepageComponent implements OnInit { boards: Board[] = Array(); errorMessage: string; constructor(private _trelloService:TrelloService,private _router: Router) { } ngOnInit() { console.log("homepage"); this._trelloService.getBoardsWithPromises() .then(boards => this.boards = boards, error => this.errorMessage = <any>error); } public boardDetail(item: Board){ this._router.navigate(["board", item.id]); }}As we can see, there are two ...
Read now
Unlock full access