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

Commit 6e7fbe7

Browse files
krustycaitp
authored andcommitted
docs(guide/directive): remove note about default restrict value
The text said a directive wouldn't work out of the box as an element, but the note immediatelly below says that by default the directives restrict to elements or attributes. 11f5aee made the removed comments invalid. Closes #9205
1 parent 3686f45 commit 6e7fbe7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

docs/content/guide/directive.ngdoc

-3
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,6 @@ using `templateUrl` instead:
282282
</file>
283283
</example>
284284

285-
Great! But what if we wanted to have our directive match the tag name `<my-customer>` instead?
286-
If we simply put a `<my-customer>` element into the HTML, it doesn't work.
287-
288285
<div class="alert alert-warning">
289286
**Note:** When you create a directive, it is restricted to attribute and elements only by default. In order to
290287
create directives that are triggered by class name, you need to use the `restrict` option.

0 commit comments

Comments
 (0)