welkie (21) [Avatar] Offline
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:

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 (205) [Avatar] Offline
Thanks for the report, I'll update it.