Contents
How do you use style tag in lightning component?
Style tab in component bundle : You can add CSS to a lightning component bundle by clicking the STYLE button in the Developer Console sidebar. after click on the STYLE button on component bundle, new CSS file is create with .
How to show the error message in lightning component?
To display the error, the component markup uses a conditional statement, and another attribute, error, for holding an error message. This is the component’s controller. If the Lightning container application throws an error, the error handling function sets the error attribute.
How to access attribute in a lightning component?
To access attribute in our Lightning Component or Lightning Application, we have to use value providers. (we will cover value providers in-depth in upcoming lesson). for now, assume value provider is just a syntax to access ‘aura:attributes’ to lightning component code.
What happens when lightning strikes a tree or other object?
When lightning strikes a tree or other object, much of the energy travels outward from the strike in and along the ground surface. This is known as the ground current. Anyone outside near a lightning strike is potentially a victim of ground current. In addition, ground current can travels in garage floors with conductive materials.
Why is lightning dangerous to animals and humans?
The greater the distance between contact points, the greater the potential for death or serious injury. Because large farm animals have a relatively large body-span, ground current from a nearby lightning strike is often fatal to livestock. Lightning can travel long distances in wires or other metal surfaces.
Why do people get hit by lightning inside and outside?
Metal does not attract lightning, but it provides a path for the lightning to follow. Most indoor lightning casualties and some outdoor casualties are due to conduction. Whether inside or outside, anyone in contact with anything connected to metal wires, plumbing, or metal surfaces that extend outside is at risk.