Skip to content

Instantly share code, notes, and snippets.

@sureshhatgithub
Created September 26, 2018 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sureshhatgithub/f0d8fc4874d97467cfbcffae5dac6885 to your computer and use it in GitHub Desktop.
Save sureshhatgithub/f0d8fc4874d97467cfbcffae5dac6885 to your computer and use it in GitHub Desktop.
removeCoin support for Angular NgRx Store Tutorial at https://appdividend.com/2018/01/31/angular-ngrx-store-tutorial-example-scratch/
import { REMOVE_COIN } from './../reducers/blockchain.reducer';
removeCoin(payload) {
if(confirm("Are you sure to delete '" + payload.name + "'?"))
{
this.store.dispatch({
type: REMOVE_ICON,
payload: payload
});
}
}
@sureshhatgithub
Copy link
Author

sureshhatgithub commented Sep 26, 2018

Attached remaining files code to add support for removeCoins. Remove .jpg from file names.
display component html
blockchain reducer ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment