我应该如何使用 grails 3 和 angular 创建 Web 应用程序?
what should I do to create a web application using grails 3 and angular?
https://www.djamware.com/post/5a10b5f580aca75eadc12d6c/grails-3-angular-5-profile-crud-web-application-example this tutorial create 2 project (server and client) but after i looking another tutorial, like http://hantsy.blogspot.com/2013/11/create-restful-application-with_7975.html 它只创建了 1 个项目,我尝试使用 2 个配置文件创建,例如
grails create-app grails-angular --profile angular --profile=rest-api
但现在我不知道我该怎么办..是真的还是假的?
如何在grails3中使用angular?有人告诉我使用插件,另一篇文章告诉我使用配置文件创建。
请问我真的很困惑
使用配置文件是最简单的方法,它将为您设置正确的插件集。实际上有两个 angular 插件,一个使用 angular 2,我认为随着时间的推移已经更新了新版本,还有一个使用 angular 1 的遗留配置文件。你可以阅读关于此处配置文件的名称更改:
http://grailsblog.objectcomputing.com/posts/2017/04/12/angular-profiles.html
使用 angular 配置文件不会为您提供包含 angular 客户端和 grails 后端的多构建项目。然而,可以将它们组合成一个项目/可部署 war:
http://guides.grails.org/angular2-combined/guide/index.html
我不是前端开发人员,但 Grails 确实有指南:
http://guides.grails.org/grails-quickcasts-angularjs-scaffolding-with-grails-3/guide/index.html
http://grails.org/profiles.html
希望这能帮助您入门。除此之外,如果您正在学习 angular,您可能需要查找有关它的单独教程。
https://www.djamware.com/post/5a10b5f580aca75eadc12d6c/grails-3-angular-5-profile-crud-web-application-example this tutorial create 2 project (server and client) but after i looking another tutorial, like http://hantsy.blogspot.com/2013/11/create-restful-application-with_7975.html 它只创建了 1 个项目,我尝试使用 2 个配置文件创建,例如
grails create-app grails-angular --profile angular --profile=rest-api
但现在我不知道我该怎么办..是真的还是假的?
如何在grails3中使用angular?有人告诉我使用插件,另一篇文章告诉我使用配置文件创建。
请问我真的很困惑
使用配置文件是最简单的方法,它将为您设置正确的插件集。实际上有两个 angular 插件,一个使用 angular 2,我认为随着时间的推移已经更新了新版本,还有一个使用 angular 1 的遗留配置文件。你可以阅读关于此处配置文件的名称更改: http://grailsblog.objectcomputing.com/posts/2017/04/12/angular-profiles.html
使用 angular 配置文件不会为您提供包含 angular 客户端和 grails 后端的多构建项目。然而,可以将它们组合成一个项目/可部署 war: http://guides.grails.org/angular2-combined/guide/index.html
我不是前端开发人员,但 Grails 确实有指南: http://guides.grails.org/grails-quickcasts-angularjs-scaffolding-with-grails-3/guide/index.html
http://grails.org/profiles.html
希望这能帮助您入门。除此之外,如果您正在学习 angular,您可能需要查找有关它的单独教程。