From 63b7e2dc921e76ca9f973ee6e5d871e76b6a1e09 Mon Sep 17 00:00:00 2001 From: austinoneil Date: Tue, 6 Sep 2016 21:45:41 -0600 Subject: [PATCH] docs(component): clarify component usage clarify that components should not be used to perform actions in compile and prelink functions, rather than listing examples of compile and prelink functions --- docs/content/guide/component.ngdoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/content/guide/component.ngdoc b/docs/content/guide/component.ngdoc index d0142bf36a5a..afc5273640b6 100644 --- a/docs/content/guide/component.ngdoc +++ b/docs/content/guide/component.ngdoc @@ -19,8 +19,7 @@ Advantages of Components: When not to use Components: -- for directives that rely on DOM manipulation, adding event listeners etc, because the compile -and link functions are unavailable +- for directives that need to perform actions in compile and pre-link functions, because they aren't available - when you need advanced directive definition options like priority, terminal, multi-element - when you want a directive that is triggered by an attribute or CSS class, rather than an element