简体   繁体   English

如何将Play Framework Application Scala与Angularjs集成

[英]How to integrate Play Framework Application Scala with Angularjs

I want to know that how can I integrate my Application.scala with my angularjs(app.js) using Play framework. 我想知道如何使用Play框架将Application.scala与我的angularjs(app.js)集成。 I'm doing some exercise with: https://github.com/NeelSachdeva/fileUpload . 我正在做一些练习: https : //github.com/NeelSachdeva/fileUpload If I run my application(It consists of angularjs and above fileUpload task), it is executing only my Application.scala controller(means my file Upload task only) but not exusting my app.js file(which is having some tabs-angular code). 如果我运行我的应用程序(它由angularjs和上面的fileUpload任务组成),则它仅执行我的Application.scala控制器(仅意味着我的文件上载任务),而没有使我的app.js文件(其中包含一些制表符-角度代码) )。 Otherwise is there any chance to execute the above functionality in my app.js tabs(in my html files) I hope I'm missing some integration part for both(Application.scala and it's scala.htmls and app.js) in some where ? 否则,有没有机会在我的app.js选项卡(在我的html文件中)执行上述功能,我希望我在某些地方缺少两者的集成部分(Application.scala及其scala.htmls和app.js)。 ? Please let me know what I'm missing. 请让我知道我想念的东西。

Play Yeoman is an excellent SBT plugin which brings the streamlined frontend development workflow and optimized build system of yeoman to Play. Play Yeoman是一个出色的SBT插件,可将简化的前端开发工作流程和优化的yeoman构建系统引入Play。 With this it's very easy to integrate Angular into a Play app. 有了它,将Angular集成到Play应用中非常容易。

Please have a look at the Play Silhouette Angular Seed template as an example implementation. 请看一下Play Silhouette Angular Seed模板作为示例实现。

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

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