From 31bdb60f0a4f883f85a0d5ea8fb4be5047187eb5 Mon Sep 17 00:00:00 2001 From: Thomas Tuts Date: Wed, 7 May 2014 13:27:37 +0200 Subject: [PATCH] docs(directive): fix misspelled HTML class for an alert Muchas gracias --- docs/content/guide/directive.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 2835c7a6..524d3d9b 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -282,7 +282,7 @@ 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 only by default. In order to create directives that are triggered by element or class name, you need to use the `restrict` option.