I have created a dynamic route in AngularJS
which allows all routes to be processed via a single PHP
file. The reason I do this is because, I don't like how you can navigate to the raw templateUrl
and see an unstyled partial page.
Before I learnt Angular
, I had Ajax
requests POST
ing to the PHP
file, but I can't seem to do this with Angular
. I have made it so the requests go to /router.php?page=XX
... but even still, this URL now has to accept GET requests.
Can I not make it so that the templateUrl
is loaded via a POST request?