I want to make a web app primarily using Python Flask framework as well as AngularJS and whilst thinking about doing so and maintaining features of the application I started wondering how the routing would be handled.
In flask it is very easy to manage how the back end directly deals with routing:
@app.route('/')
def home():
In Angular it is easy to manage routing as well obviously, and the data can be worked with by loading specific controllers in to access certain parts of the back end via XHR and what not.
To make a good single page web app would I benefit most from delegating all the routing responsibility to either Flask or Angular, or would it make sense to let Flask handle all the routes with just a /
, and let Angular deal with all the hash-routing for changes in that single view.
I'm not exactly sure how to tackle and delegate this and I realize there is no one way to do it but I interested to see if anyone has messed with this before and what they found to be easier to work with.