507205 (2) [Avatar] Offline
[ 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 (208) [Avatar] Offline
You're right, and this code can be simplified even further: https://plnkr.co/edit/8ikGoQDH7xvyt8G81syY