Of course if we add records, we need to be able to delete them. We've done this before, but this time we'll use a different path to the data and work with our view to remove items.
- [Narrator] Next, I want to go ahead…and create a delete button so that we can get rid of…any check-ins that you don't want in your list.…So that's pretty easy, and we've done that before…with our meetings, but before we do that,…we have no way of getting to this page.…If we go to Meetings, going to add another button right here…that will allow us to go to the Meetings list.…I'm going to go into meetings.html…and I'm going to create another button here,…let's go ahead and separate these a little bit.…
It's going to be similar to this check-in button.…So I'm going to copy that one…and then just going to modify it a little bit.…So this is going to be almost exactly like the URL…to the check-in button, except that at the end…it's going to have the check-ins list route.…So I'm going to save that,…and now I should see the Meetings button right here,…so when I go here, I can click on this button…and go to our list, that's nice.…
Now we need to add a Delete button right here,…and we'll need to also of course…add the functionality in the controller.…
Learn how to create forms, edit database records, create methods, randomize record selections, and style and secure your app. With these project-based lessons, you'll learn how to see how data-driven programming with AngularJS can help your apps react to real-time data streams.
- Customizing an Angular template
- Adding forms to create meetings and check in users
- Adding, showing, and deleting database records
- Using events to track meetings
- Adding a form to the app
- Creating methods
- Randomizing prizes
- Creating conditional styles
- Managing app permissions