Skip to content

Commit 004389d

Browse files
authored
clarify components vs directives for AngularJS
1 parent 44c8fcb commit 004389d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ AngularJS uses two-way binding between scopes, while Vue enforces a one-way data
150150

151151
### Directives vs Components
152152

153-
Vue has a clearer separation between directives and components. Directives are meant to encapsulate DOM manipulations only, while components are self-contained units that have their own view and data logic. In AngularJS, there's a lot of confusion between the two.
153+
Vue has a clearer separation between directives and components. Directives are meant to encapsulate DOM manipulations only, while components are self-contained units that have their own view and data logic. In AngularJS, directives do everything and components are just a specific kind of directive.
154154

155155
### Runtime Performance
156156

0 commit comments

Comments
 (0)