welkie (21) [Avatar] Offline
#1
In this section the code provided for the Dashboard component is out of date. The GitHub repo has the correct code, but the book has this code:

@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.css']
})
export class DashboardComponent implements OnInit {
stocks: Array<StockInterface>;
symbols: Array<string>;

constructor(private service: StocksService) {
this.symbols = service.get();
}

ngOnInit() {
this.subscription = this.service.load(this.symbols).subscribe(stocks => this.stocks = stocks);
}
}

"this.subscription = " causes an error since that property of the class doesn't exist.
jeremy.wilken (201) [Avatar] Offline
#2
Thanks for the report, I'll update it.