From a365a0c3ff3e0c0df3bdabce47fa38f6d2648ff8 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 9 Dec 2019 10:49:02 -0500 Subject: [PATCH] Stricter directives with better docs --- ext/afform/core/ang/af.ang.php | 4 ++-- ext/afform/core/ang/af/Entity.js | 5 ++--- ext/afform/core/ang/af/Fieldset.js | 7 +++---- ext/afform/core/ang/af/Form.js | 6 ++---- ext/afform/core/ang/afField.ang.php | 2 +- 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/ext/afform/core/ang/af.ang.php b/ext/afform/core/ang/af.ang.php index 0dae45cef5..249a7a6e39 100644 --- a/ext/afform/core/ang/af.ang.php +++ b/ext/afform/core/ang/af.ang.php @@ -15,8 +15,8 @@ return [ 'settings' => [], 'basePages' => [], 'exports' => [ - 'af-entity' => 'AE', + 'af-entity' => 'E', 'af-fieldset' => 'A', - 'af-form' => 'AE', + 'af-form' => 'E', ], ]; diff --git a/ext/afform/core/ang/af/Entity.js b/ext/afform/core/ang/af/Entity.js index 561563d6ca..fdb791e20f 100644 --- a/ext/afform/core/ang/af/Entity.js +++ b/ext/afform/core/ang/af/Entity.js @@ -1,6 +1,5 @@ (function(angular, $, _) { - // "afEntity" is a basic skeletal directive. - // Example usage: ... ... + // Example usage: ...
...
...
... + // Example usage: ...
+ // Example usage: angular.module('af').directive('afForm', function() { return { - restrict: 'AE', + restrict: 'E', scope: { - // afForm: '=', ctrl: '@' }, link: { diff --git a/ext/afform/core/ang/afField.ang.php b/ext/afform/core/ang/afField.ang.php index a50114e60d..6f42674372 100644 --- a/ext/afform/core/ang/afField.ang.php +++ b/ext/afform/core/ang/afField.ang.php @@ -18,6 +18,6 @@ return [ 'settings' => [], 'basePages' => [], 'exports' => [ - 'af-field' => 'AE', + 'af-field' => 'E', ], ]; -- 2.25.1