Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b728030

Browse files
akhleshcaitp
authored andcommitted
docs(guide/directive): update since 'EA' is now the default restrict value
11f5aee changed the compiler to use 'EA' as a 'restrict' value if not specified in the directive object, and the directive guide needed some slight changes to address this. Closes #8769
1 parent 2e3a7fd commit b728030

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/directive.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ Great! But what if we wanted to have our directive match the tag name `<my-custo
285285
If we simply put a `<my-customer>` element into the HTML, it doesn't work.
286286

287287
<div class="alert alert-warning">
288-
**Note:** When you create a directive, it is restricted to attribute only by default. In order to
289-
create directives that are triggered by element or class name, you need to use the `restrict` option.
288+
**Note:** When you create a directive, it is restricted to attribute and elements only by default. In order to
289+
create directives that are triggered by class name, you need to use the `restrict` option.
290290
</div>
291291

292292
The `restrict` option is typically set to:

0 commit comments

Comments
 (0)