When should you use an attribute versus an element?

Technology CommunityCategory: AngularJSWhen should you use an attribute versus an element?
VietMX Staff asked 3 years ago
  • Use an element when you are creating a component that is in control of the template.
  • Use an attribute when you are decorating an existing element with new functionality.