Join Ray Villalobos for an in-depth discussion in this video Pushing awards to our database, part of AngularJS 1: Building a Data-Driven App.
- Let's write the method that is going to allow us…to store the information about the gifts…and push things up to Firebase.…So, to do that, I'm going to need to add another method.…And, I'm right down here at the end of checkins.js…and we're going to need to do another one…in the scope called giveLove…and that's going to be a function.…It's going to get myCheckin…and also information about the gift.…So let's go ahead and finish up the function.…
Call, add a couple.…It looks like I'm missing some semicolons here and there.…It's not usually a big deal but it's nice to add those.…And, okay, so this giveLove function,…is being called from my checkins list…whenever somebody types in…something into this field…and they hit this plus button,…then this is going to be submitted…and pass along information about the checkin,…as well as this giftText.…So that's what we're receiving right here.…
And so, now we need to store that into Firebase.…To do that, we're going to need to do a couple of things.…Essentially, we need to find the path…
Although it's easy to learn, AngularJS can be hard to master. With these project-based lessons, you'll learn how the framework works in the real world, and see how data-driven programming can help your apps react to real-time data streams.
- Creating a new view
- Adding, showing, and deleting database records
- Using events to track meetings
- Adding a form to the app
- Creating methods
- Controlling views with classes