Join Gary Simon for an in-depth discussion in this video Updating, part of Angular 2+: Creating CRUD Apps.
- [Narrator] Let's finish up our chat app…by implementing the ability to update…and delete our Firebase chat messages.…First, let's focus on deleting as it's really simple.…So in our template we need to add a click event…bound to a method that will define…in our component class in a little bit.…So to do this we take our delete button right here,…and we're going to add in a click event.…And it's going to be bound to a method called delete.…
And we're going to pass in item.,…and for accessing the unique key…associated for each message…which will help us identify which message to delete…we type the cash symbol, key.…Alright, now next in our component class file,…we create a very simple method called delete.…And we're going to pass in the key as a string.…
And we type in this.items…and we use the remove method and we pass in the key.…So let's hit save.…And go to our app component and save as well.…We'll go to our browser.…And we'll go ahead and test this out.…So let's go ahead and delete this last one.…And there we go, we see that it works.…
- Angular Firebase CRUD
- Firebase setup
- Starting a project
- Defining the template
- CRUD apps with MongoDB
- MongoDB setup
- Creating a data service
- Home component
- Creating, updating, and deleting articles
Skill Level Intermediate
Angular 2: Widget-Based Architectureswith Derek Peruo52m 18s Intermediate
Angular Essential Trainingwith Justin Schwartzenberger2h 48m Intermediate
1. Required Understanding
2. Angular Firebase CRUD
3. CRUD Apps with MongoDB (Back End)
4. CRUD Apps with MongoDB (Front End)
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.