Just like we did with other records, we'll need to push data about the awards to our database. We'll also need to display this form within our interface.
- [Instructor] Let's take care of writing…the information to the database.…I'll also go ahead and show…the prizes in the list, right here.…What I need to do is write this function…that I'm calling get love, here, scope.givelove…and this is going to be a function…and it's going to get passed the check in information,…as well as the gift information.…
Remember that's being called from check in list…and it's called right here, so the information that is on…this form is going to get passed through these variables,…right here, into this give love function…that we're creating.…What we need is a reference to the database…at the position that we want to insert this data.…Let's take a look at our data file right now…and you can see that I've got the users,…then a hash for each user, then meetings,…hash for each meeting, check ins,…hash for each one of the check ins.…
We're just going down this structure…and then finding the user that we want…to insert this data in and then we're going to create…a new sort of section, right here, called awards,…
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