IuryNogueira/myreef

View on GitHub
thereef/src/app/components/on-off-sensor/on-off-sensor.component.html

Summary

Maintainability
Test Coverage
<div class="on-off-sensor " [ngClass]="{'on': currentOnOffValue, 'off': !currentOnOffValue}">
<div>
<div class="circle"></div>
</div>
<div>
<span class="name">{{name}}</span>
<br>
<span class="status">{{!currentOnOffValue ? 'Desligado' : 'Ligado'}}</span>
</div>
</div>