hidden-brick

Lego plugin to hide/show dom elements

hidden-brick

Lego plugin to hide/show dom elements.

with component:

$ component install bredele/hidden-brick

with nodejs:

$ component install hidden-brick

First, add the plugin to your view (see lego to know more about views):

view.add('hide', require('hidden-brick'));
<span hide="bool">hide on truethy</span>
<span hide="!bool">show on truethy</span>

Listen changes on bool attribute of lego's view and apply hidden class.

see live example

MIT