I'm working on implementing an angular app inside of the WordPress admin dashboard.
I'm currently trying to implement routes and I'd like to know if there's a way to match routes with a specific parameter. For example, my plugin's base URL in WordPress is:
http://localhost/wp/wp-admin/admin.php?page=angular_plugin
This matches with the root path of angular routing. However, if I want to implement more pages, I can't use a different path since WordPress is not going to recognize it and will return an error. So to avoid WordPress messing around with my routes, I need to use the plugin's base URL and play with the parameters to indicate which route I'm trying to load.
For example, to load the dashboard route, it would have to be something like:
http://localhost/wp/wp-admin/admin.php?page=angular_plugin&route=dashboard
Is there a way to declare routes like this in Angular?