Created
September 26, 2018 02:24
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attached remaining files code to add support for removeCoins. Remove .jpg from file names.