-
Click on the green "code" button.
-
Click "Download ZIP".
-
Extract Files.
-
Open in VSCode.
-
Run
npm install
.
-
Create a new Subject in the PillowCaseService that emits when the myCandies array updates.
-
Subscribe to that change and update the local myCandies array.
-
Create a variable of type "Subscription", store the observable under inside, and use
ngOnDestroy
to unsubscribe when the component is destoyed. -
Create a new Subject in the CandyStoreService that emits when the candiesForSale array updates.
-
Subscribe to that change and update the local candiesForSale array.
-
Create a variable of type "Subscription", store the observable under inside, and use
ngOnDestroy
to unsubscribe when the component is destoyed.