Now that we have the form, we'll need to work on the controller that will push the meeting information to the database. We'll use the Firebase $add method to push the data into our Firebase database.
- [Instructor] In the last video,…we created a form that will allow users to add meetings…to our database, so let's write the controller…that's going to take care of that.…Right, so, we've got this meeting.js controller right here,…and right now it doesn't do very much.…Let's go ahead and expand this window.…I'm going to need a number of dependencies…for this controller, so,…let's go ahead and take care of that.…In addition to scope,…I'm going to need Firebase authentication,…so that's called $firebaseAuth,…as well as access to the Firebase array service here.…
And then we'll need to repeat those over here,…so I like to put these on the next line,…and let's just copy down from here.…And we don't really need this message anymore.…So what we're going to be doing here is pretty much…like what we did for our authentication service.…We're going to need to create a reference to the database,…and also make sure that we grab the authentication service,…because this particular page requires authentication…in order to be viewed, and so we're going to pretty much need…
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