Join Gary Simon for an in-depth discussion in this video Deleting articles, part of Angular 2+: Creating CRUD Apps.
- [Instructor] In this video,…let's finish up this project…by giving users the ability to delete articles.…So let's visit our API file.…Just come up here real quickly…and copy one of the router get requests here.…Come down here to the end.…We're going to change the endpoint here…from articles here to delete.…We'll leave ID there…because we need the ID to delete it.…We'll console log "Deleting an Article."…All right?…We're going to change find by ID…instead to find by ID and remove.…
Error deleting.…And that's it.…So now let's go ahead and save this.…Once again, we'll go back to our console…and restart the server.…Node server.…Now let's go back to the article service…to create the new delete method.…Okay, up here,…I'm just going to copy that real quick.…I'm going to change this here to delete article.…
Leave the ID.…And this is a get request,…and this'll be /api/delete plus the ID.…Go ahead and save.…And then in the article component file,…we're going to go ahead and create a new method…for deleting the articles.…So just under ngOnInit,…
- 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 2 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.