Click in order · Angular course · Module 5: Services and DI
Clearing the cart state
Build the call that clears the cart state by setting an empty array (click in order):
Items to click
- this.items
- .set(
- )
- []
You can check the correct answer by solving this task in the CodeWorlds game.