The child controller that is shown or hidden.
The controller of the component.
The component's element.
The generator used to create the component.
The current result of the expression.
This static property defines which properties of the componentshould be available in its local scope which will be used by thecomponent's behaviors as well as by the defining element's children.
Values of this array represent the name of one of the component'sproperties that will be pushed to the local scope.
export default class MyComponent extends Component { static locals = ['firstName', 'lastName'];}
Removes or appends the content when the expression result has changed.
The Show component shows or hides its content dependingon the evaluation of an expression defined in the ifattribute.
Example
This simple example only shows a user item when the propertyisMember of an object user from the local scope is truthy.
<show if="user.isMember"> <h3>${ user.fullName }</h3></show>
{ default } from mahalo/components/show