Restrict custom page access to admin users

Hi, I made a frontend extension in angular that has a page with its own url path. What can i do to restrict it’s access to administrators only?

You can put condition in the PHP code to check if user is admin or not. But, I do not know for frontend angular.

Maybe this will help: