Example project for grails 3.1 with angularjs profile. Shows simple demo of routing with controller
You can download this project from right withing the intellij using file->new->project from version control->git
Once the project is opened as gradle project run bowerRefersh task in gradle pane to download the needed javascripts and then you can run the project.
The project demonstrates creating Grails domain class and then generate-all on that class. Once a class+controller+views are created in the project we create ng-controller, ng-service and template for the domain class User
See the project commit history for reference
Following are the key js files
- grails-app\assets\javascripts\myapp\core\services\DomainServiceFactory.js
- grails-app\assets\javascripts\myapp\user\services\userDataFactoryService.js
- grails-app\assets\javascripts\myapp\user\controllers\userController.js
- grails-app\assets\javascripts\myapp\user\routes.js
######Landing page ######List Page ######Show page ######Create page