Lightning Components Attributes

Lightning Components attributes are used to:

  • Pass information from one component to another component.
  • Pass information from an app to a component.
  • Pass information from an url query string to an app.
  • Hold information that is dynamically changed (eg: through javascript) and which is dynamically referenced within an app or component.

This is, attributes can be defined within a component or within an app. The purpose of this post is seeing examples of the types of attributes that we can define and how can we pass them from one component to another. Passing attributes from an app to a component would work exactly in the same way. For more information on dynamically setting attributes in an app through the query string, take a look at this.

Continue reading