Join Ray Villalobos for an in-depth discussion in this video Creating a check-in method, part of AngularJS 1: Building a Data-Driven App.
- Now that we've created the form that allows users…to check into our meetings,…it's time to write the method that will…add those meetings to our database.…So, what I need to do is write in our checkins controller.…I'm going to need to add a couple of variables here.…We're going to need a couple of pieces of information…in order to check-in users.…If you take a look at the dashboard in Firebase,…you'll note that we have a set of users.…Right now we only have one user…and that user will have a path for meetings.…
In each of those meetings you essentially have…a hash that takes you to this meeting information.…Now, we want to put the checkins information…inside each of these records.…So, we're going to need to know two things…that are not obvious,…the ID of the user, this hash right here,…as well as the ID of the meeting,…which is this hash right here.…Now, if you remember we are getting that…from the meetings page.…If we go back to the meetings page,…when we click on this Go to check-in URL,…we are passing that information along…
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