How to have Express routing work with Angular routing with HTML5 style URLs?

前端 未结 1 1004
臣服心动
臣服心动 2021-02-10 14:48

I would like to make an AngularJS app with HTML5-style URLs (i.e. with no # fragment in the URL). Thus in the routing controller module of my Angular app I\'ve got

1条回答
  •  死守一世寂寞
    2021-02-10 15:39

    It appears that it does all work. I didn't do that work myself, however. I relied on this skeleton project: https://github.com/thanh-nguyen/angular-express-seed-coffee

    This allows you a certain degree of control over which paths are handled by the client and which by the server.

    0 讨论(0)
提交回复
热议问题