To perform certain actions, we need to be able to respond to events. In this app, if we want to display the number of meetings in our navigation, we can track what happens when items are loaded or changed.
- [Narrator] When working with Firebase,…sometimes we can wait until some…database actions take place to do something.…So let's take a look at how we can…leverage some of these events…to make our application a little bit better.…We're going to add a meeting count to our menu…and also make sure that we have…the ability to go to our menu whenever we want to.…So right now you can see that I've refreshed the screen,…and somehow I ended up in this log in screen.…If I want to go to meetings…I can go ahead and do meetings here,…and it'll take me to that page,…but occasionally it'll sort of…reset itself to the meetings page,…and I can fix that in a couple of different ways.…
So if I go, for example, to the app…you'll notice that the default right now…redirects you to the log in page.…We could change that in there by going to meetings,…and then whenever the application reset…it would attempt to go to the meetings page,…something that wasn't happening before,…but just in case we have other pages…it would be nice to sort of display…
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