简体   繁体   English

在播放框架中嵌入yeoman创建的angularjs应用程序

[英]Embed yeoman created angularjs application in play framework

My target software architecture: 我的目标软件架构:

  • Backend-application (RESTful http API, responding JSON) 后端应用程序 (RESTful HTTP API,响应JSON)
    • Play Framework (v2.3.8) 播放框架(v2.3.8)
  • Frontend-application (requests the backend-application and renders the result) 前端应用程序 (请求后端应用程序并呈现结果)
    • AngularJS App AngularJS应用
    • Yeoman scaffolded (angular-generator) Yeoman脚手架(角度生成器)

My question: 我的问题:

I want to host the angularjs inside the play application. 我想在play应用程序中托管angularjs。 How can I achieve that? 我该如何实现?

(I don't want to create a second app and host it with grunt serve since this causes problems because of the 'same origin policy') (我不想创建第二个应用程序并通过grunt服务托管它,因为由于“相同来源政策”,这会导致问题)

You could use Play Yeoman . 您可以使用Play Yeoman Here is a small example application which shows a simple implementation. 是一个小示例应用程序,显示了一个简单的实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM