0

I am making a dummy online shopping site.When i add products to the cart the cart array gets updated as i observed in the console but the view is not getting rendered

Here is my view

cart.html

Here is my component cart-component.ts

  • 1
    You have mixed up a component and a service. please have a look at the tutorial https://angular.io/tutorial/toh-pt2 – D Pro Oct 28 '19 at 06:25
  • see this: https://stackoverflow.com/questions/36919399/angular-2-view-not-updating-after-model-changes – AbolfazlR Oct 28 '19 at 06:27

0 Answers0