S
S
Sylar Gray2016-03-12 03:19:16
Angular
Sylar Gray, 2016-03-12 03:19:16

View of URL routing in angular?

Good afternoon, the site implements routing in php, it became necessary to translate it into angular with the ability to save the url format.
The question is that in each manual for setting up routing through ngRoute/ui.router, examples are given with a url like this: api/news/1/edit .
In php router all URLs are like this: id1&tab=newsfeed or news&act=create
Is there any solution that allows using regular expressions in router/whatever to load the template of the desired page?
All these manipulations are necessary for the correct definition of the controller with a method for loading the desired template.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2016-03-12
@astralo

it's called a RESTful backend. use a php framework to handle angular requests from the front. You can see for example laravel or lumen

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question