Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 959 Bytes

user-story-7.md

File metadata and controls

31 lines (23 loc) · 959 Bytes

7. Delete a game

Goal: As a user, I want to delete a game

Keywords: custom event

  1. Implement delete in services.dart
delete(int id) => ???;
  1. Fire a custom event on trash button click
  • In x-game element, handle click on trash button
  • Fire a custom event my-delete-event embedding the game instance (Hints)
  1. Handle the custom event
  • In x-games element, handle my-delete-event

    <x-game game="{{game}}" ???="{{delete}}"></x-game>
  • Implement the handler to delete the game using gameStoreService

  1. One Game to rule them all!
    Game delete

Hints: