You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: src/docs/asciidoc/customization/index.adoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
3
3
This plugin is an extension of link:https://github.com/grails/scaffolding[Grails Scaffolding Core]. To change how markup is rendered in the html templates, see the scaffolding core link:http://grails.github.io/scaffolding/{scaffoldingCoreVersion}/[documentation]. The following changes have been made:
4
4
5
-
. The `propertyMarkupRenderer` bean has been set to an instance of link:api/org/grails/plugin/scaffolding/angular2/markup/AngularPropertyMarkupRenderer.groovy[AngularPropertyMarkupRenderer] that only overrides the link:api/org/grails/plugin/scaffolding/angular/markup/AngularPropertyMarkupRendererImpl.html#getStandardAttributes(DomainProperty)[getStandardAttributes] method to add an `[(ngModel)]` attribute.
6
-
. The `contextMarkupRenderer` has been set to an instance of link:api/org/grails/plugin/scaffolding/angular2/markup/AngularContextMarkupRenderer.groovy[AngularContextMarkupRenderer] that overrides the list output context to use an `*ngFor`.
5
+
. The `propertyMarkupRenderer` bean has been set to an instance of link:api/org/grails/plugin/scaffolding/angular/markup/AngularPropertyMarkupRenderer.groovy[AngularPropertyMarkupRenderer] that only overrides the link:api/org/grails/plugin/scaffolding/angular/markup/AngularPropertyMarkupRendererImpl.html#getStandardAttributes(DomainProperty)[getStandardAttributes] method to add an `[(ngModel)]` attribute.
6
+
. The `contextMarkupRenderer` has been set to an instance of link:api/org/grails/plugin/scaffolding/angular/markup/AngularContextMarkupRenderer.groovy[AngularContextMarkupRenderer] that overrides the list output context to use an `*ngFor`.
7
7
. Additional input and output renderers are registered with a priority of 0. If you wish your own renderers to be used, set a priority higher than 0. See the link:http://grails.github.io/scaffolding/{scaffoldingCoreVersion}/#_how_properties_are_rendered[section on how properties are rendered] in the scaffolding core documentation for more details on how to do so.
8
8
9
-
The JavaScript templates used to create assets can be overridden by executing `grails ngInstallTemplates`. That will put a set of files in `src/main/templates/angular2`. You can modify the templates and they will be used in future angular code generation. You can safely remove any templates that you do not wish to override.
9
+
The JavaScript templates used to create assets can be overridden by executing `grails ngInstallTemplates`. That will put a set of files in `src/main/templates/angular`. You can modify the templates and they will be used in future angular code generation. You can safely remove any templates that you do not wish to override.
Copy file name to clipboardExpand all lines: src/docs/asciidoc/installation/index.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
== Installation
2
2
3
-
To start using this plugin, add it to your `build.gradle` like the example below. If you created your project with the angular2 profile in Grails 3.2.0 or higher, this is done automatically.
3
+
To start using this plugin, add it to your `build.gradle` like the example below. If you created your project with the angular profile in Grails 3.2.0 or higher, this is done automatically.
The goal of this plugin is to provide basic CRUD abilities using Angular 2 in a single page application. It is designed to be used alongside the angular2 profile, however it can be used in applications that were not created from the angular2 profile. This guide will cover what functionality you can expect from this plugin, as well as how you can change that functionality to meet your needs.
3
+
The goal of this plugin is to provide basic CRUD abilities using Angular in a single page application. It is designed to be used alongside the angular profile, however it can be used in applications that were not created from the angular profile. This guide will cover what functionality you can expect from this plugin, as well as how you can change that functionality to meet your needs.
Copy file name to clipboardExpand all lines: src/docs/asciidoc/usage/index.adoc
+4-4
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ You can also execute the command via Gradle.
14
14
$ ./gradlew ngGenerateAll -Pargs="com.foo.Bar"
15
15
----
16
16
17
-
The default root path where assets will be created is "../client/src/app". That is because the plugin is configured by default to work with the angular2 profile which creates a multi-project build. To change that setting and others, see the link:configuration.html[configuration] section.
17
+
The default root path where assets will be created is "../client/src/app". That is because the plugin is configured by default to work with the angular profile which creates a multi-project build. To change that setting and others, see the link:configuration.html[configuration] section.
18
18
19
19
20
-
The command will generate everything required to create, read, update, and delete instances of domain classes with Angular 2. The following will be created if they don't already exist.
20
+
The command will generate everything required to create, read, update, and delete instances of domain classes with Angular. The following will be created if they don't already exist.
21
21
22
22
. A module for the domain `../client/src/app/bar/bar.module.ts`.
23
23
. A routing module `../client/src/app/bar/bar-routing.module.ts`.
@@ -57,7 +57,7 @@ If it is not successful, you will be responsible for importing it.
57
57
58
58
=== Assumptions
59
59
60
-
This plugin assumes you have an environment that supports ES6 modules and typescript. It is based upon the angular2 profile which uses the Angular CLI.
60
+
This plugin assumes you have an environment that supports ES6 modules and typescript. It is based upon the angular profile which uses the Angular CLI.
61
61
62
62
=== REST API
63
63
@@ -92,7 +92,7 @@ grails:
92
92
93
93
=== Routing
94
94
95
-
If you are using the angular2 profile, the default index page is modified so that clicking on the link to the controller will automatically route you to the module the controller represents. If you are using this plugin in an existing application, you will have a little bit of work to do to use the generated assets.
95
+
If you are using the angular profile, the default index page is modified so that clicking on the link to the controller will automatically route you to the module the controller represents. If you are using this plugin in an existing application, you will have a little bit of work to do to use the generated assets.
96
96
97
97
The first step is to ensure the module is included in the page. If the bootstrap module is found, a dependency will automatically be created, however if the bootstrap module is not found, it is up to you to ensure the newly created module is imported.
Copy file name to clipboardExpand all lines: src/main/groovy/org/grails/plugin/scaffolding/angular/registry/input/AngularAssociationInputRenderer.groovy
Copy file name to clipboardExpand all lines: src/main/groovy/org/grails/plugin/scaffolding/angular/registry/input/AngularBidirectionalToManyInputRenderer.groovy
0 commit comments