From 7491380f1b3d0bd21e24438447943b094a600bf5 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 20 Dec 2019 07:18:45 -0500 Subject: [PATCH] Update docs to reflect less metadata in default afform scope --- ext/afform/core/templates/afform/AfformAngularModule.tpl | 2 +- ext/afform/docs/writing.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/afform/core/templates/afform/AfformAngularModule.tpl b/ext/afform/core/templates/afform/AfformAngularModule.tpl index 1e96eb5a7b..e4bc0ca8aa 100644 --- a/ext/afform/core/templates/afform/AfformAngularModule.tpl +++ b/ext/afform/core/templates/afform/AfformAngularModule.tpl @@ -1,7 +1,7 @@ {* This takes an $afform and generates an AngularJS module. @param string $afform.camel The full camel-case name of the AngularJS module being created - @param array $afform.meta The full metadata record of the form + @param array $afform.meta Relevant form metadata @param string $afform.layout The template content (HTML) *} {literal} diff --git a/ext/afform/docs/writing.md b/ext/afform/docs/writing.md index 7ed5a41c93..5cc2ee64e0 100644 --- a/ext/afform/docs/writing.md +++ b/ext/afform/docs/writing.md @@ -8,7 +8,7 @@ creates a scope with these variables: * `routeParams`: This is a reference to the [$routeParams](https://docs.angularjs.org/api/ngRoute/service/$routeParams) service. In the example, we used `routeParams` to get a reference to a `name` from the URL. -* `meta`: The stored meta data (`*.aff.json`) for this form. +* `meta`: Object which for now contains just the form name but could potentially have other metadata if needed. * `ts`: This is a utility function which translates strings, as in `{{ts('Hello world')}}`. Additionally, AngularJS allows *directives* -- these are extensions to HTML (custom tags and attributes) which create behavior. For example: -- 2.25.1