attr
Keep an attribute live to a can.compute.
live.attr(el, attributeName, compute)
Keep an attribute live to a can.compute.
Parameters
-
el
{HTMLElement}
The element whos attribute will be kept live.
-
attributeName
{String}
The attribute name.
-
compute
{can.compute(getterSetter, context)}
The compute.
Use