toggle
means: it has two states, which can be toggled between the two states
Tags:
Authors:Zhicheng Wang
<div #editor="uiToggle" uiToggle>
<div *ngIf="editor.isOff" (click)="editor.turnOn()" class="form-control-static">
{{editorValue}}
</div>
<input *ngIf="editor.isOn" (blur)="editor.turnOff()" (keyup.enter)="editor.turnOff()" [(ngModel)]="editorValue"
class="form-control" type="text" uiFocus/>
</div>