From 22de2a65b3a623bce3f0b5a4469097282642e295 Mon Sep 17 00:00:00 2001 From: PapsOu Date: Wed, 8 Aug 2018 18:27:06 +0200 Subject: [PATCH] docs: component-selector both element and attribute rule (#698) * Update doc for both element and attribute rule Related to bug #307 * Shorten sentence for both items --- src/componentSelectorRule.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/componentSelectorRule.ts b/src/componentSelectorRule.ts index 8bea3a91d..5d6f7ab4c 100644 --- a/src/componentSelectorRule.ts +++ b/src/componentSelectorRule.ts @@ -16,7 +16,8 @@ export class Rule extends SelectorRule { optionExamples: [ [true, OPTION_ELEMENT, 'my-prefix', OPTION_KEBAB_CASE], [true, OPTION_ELEMENT, ['ng', 'ngx'], OPTION_KEBAB_CASE], - [true, OPTION_ATTRIBUTE, 'myPrefix', OPTION_CAMEL_CASE] + [true, OPTION_ATTRIBUTE, 'myPrefix', OPTION_CAMEL_CASE], + [true, [OPTION_ELEMENT, OPTION_ATTRIBUTE], 'myPrefix', OPTION_CAMEL_CASE] ], options: { items: [ @@ -46,7 +47,7 @@ export class Rule extends SelectorRule { }, optionsDescription: Utils.dedent` Options accept three obligatory items as an array: - 1. \`${OPTION_ELEMENT}\` or \`${OPTION_ATTRIBUTE}\` forces components either to be elements or attributes. + 1. \`${OPTION_ELEMENT}\` or \`${OPTION_ATTRIBUTE}\` forces components to be used as either elements, attributes, or both (not recommended) 2. A single prefix (string) or array of prefixes (strings) which have to be used in component selectors. 3. \`${OPTION_KEBAB_CASE}\` or \`${OPTION_CAMEL_CASE}\` allows you to pick a case. `,