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

Tags:

No documentation yet

Authors:Zhicheng Wang

<div [(ngModel)]="more" uiToggle>
  <div i18n>This is a brief</div>
  <a *ngIf="!more" (click)="open()" href i18n uiPreventDefault>Click me to see more...</a>
  <div *ngIf="more" class="alert alert-success">
    <div *ngFor="let i of 10|times" i18n>these are detail with many many lines</div>

    <a (click)="close()" href i18n uiPreventDefault>Click me to see brief only</a>
  </div>
</div>