The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

507205 (2) [Avatar] Offline
#1
app.ts
[ 2 KB ]
While reviewing this example I thought it would be worthwhile to eliminate the instance variables stockSymbol and price from both AppComponent and PriceQuoterComponent, since these variables are already declared in the interface. Here is the plunker project, https://plnkr.co/edit/v4hlIb?p=info
and I would be interested in feedback since I'm learning. The bulk of the change is contained in the attached app.ts.
Yakov Fain (219) [Avatar] Offline
#2
You're right, and this code can be simplified even further: https://plnkr.co/edit/8ikGoQDH7xvyt8G81syY

Thanks
Yakov