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
This commit is contained in:
krusty
2014-09-21 21:48:04 -03:00
committed by Caitlin Potter
parent 3686f45398
commit 6e7fbe77c9

View File

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