From a9a15c0f46e7a82e72b45bb4f28ea29b71943a10 Mon Sep 17 00:00:00 2001 From: krusty Date: Sun, 21 Sep 2014 21:48:04 -0300 Subject: [PATCH] Remove invalid caveat description The text said a directive wouldn't work out of the box as an element, but the note inmediatelly bellow says that by default the directives restrict to elements or attributes. --- docs/content/guide/directive.ngdoc | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index ea7193869b1d..bc5fefd77821 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -282,9 +282,6 @@ using `templateUrl` instead: -Great! But what if we wanted to have our directive match the tag name `` instead? -If we simply put a `` element into the HTML, it doesn't work. -
**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.