OK - let me begin by saying that this is going to come off as a hand-me-down type of question. I am an experienced CakePHP developer and a complete newbie at Angular.
I have a REST enabled backend written in CakePHP v3. I am now looking to create a front-end enabled by Angular for the same. The web app has about 25 controllers on the backend about 50 tables - so it is a fairly complicated app.
Questions
I understand Angular doesnt really maintain state between pages or requests. And for a backend app to be truly 'RESTful' it should also not rely on state but authenticate every request / action - how do I do this? Once a user logs in - how do I create a token that is then exchanged between Angular and CakePHP for every request call?
When the user moves between different pages on the front-end, how do I track the same and maintain authentication access in Angular?
Again - if these questions seem like hand-me-downs but examples and documentation is really scarce for integrating Angular with CakePHP. I am hoping that I can build some knowledge base around these eventually.