简体   繁体   中英

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. I'm doing some exercise with: 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). 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 ? 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. With this it's very easy to integrate Angular into a Play app.

Please have a look at the Play Silhouette Angular Seed template as an example implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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