From the course: Angular: Cloud-Powered Apps with Firebase

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Admin interface: Route guards, part 1

Admin interface: Route guards, part 1

From the course: Angular: Cloud-Powered Apps with Firebase

Start my 1-month free trial

Admin interface: Route guards, part 1

- Now that we have used the Firebase admin sdk, to set custom planes for admin user. It is time to start developing our admin interface. Which will allow the admin user to see all of the registered users and view and edit their profile data. Let's start by creating a new users component. Now we use the angular CLI. N-G. G which is short for generate. C. Which is short for component. Now we'll call this component users component. We'll then go ahead and add a new route in our routing module. Add a new object here. The path will be users. The component would be the users component, we'll just create it. And this will also have an off guard here. We'll be leveraging the Angular Fire Auth Guard. The auth guard will need some data. And for the auth guard pipe, we'll be writing in admin only auth guard pipe. Being able to file library contains a very helpful custom claims operator that will allow us to get the claims…

Contents