Play Framework 2.1 - AngularJS routing - best solution?

前端 未结 7 1870
既然无缘
既然无缘 2020-12-23 16:57

I am working my way through the AngularJS tutorial. Angular uses it\'s own JS routing mechanism to allow for single page apps. A sample routing file for Angular looks like t

7条回答
  •  -上瘾入骨i
    2020-12-23 17:30

    I really think it's not a very good idea even it comes from a respectfully mind indeed.

    I think it's a very good practice to leave every think as defaulted (convention over configuration principle) which means for me that we've probably more interest to keep each Paradigms (Play and AngularJS) separated as one or both could evolve in the near or the far future which will have its cost for code maintenance.

    The second very important point is testability, if you mix both technos you'll end up with a mix to come up with real good coverage of tests in both side of your application. Cheers

提交回复
热议问题