toggle means: it has two states, which can be toggled between the two states

Tags:

dog
No documentation yet

Authors:Zhicheng Wang

<img *ngIf="toggle.isOff" (click)="toggle.turnOn()" alt="dog" src="../../../assets/toggle/dog.jpg"/>
<img *ngIf="toggle.isOn" src="../../../assets/toggle/cat.jpg" alt="cat" (click)="toggle.turnOff()"/>