-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(demo): fix demo to work with 2.0.0+
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<h3>Copy from text -- text</h3> | ||
<h3>Copy from text -- text</h3> | ||
Click this button, it will copy the text from the input by referring to the <strong>text content</strong> | ||
<div class="input-group"> | ||
<input type="text" class="form-control" [(ngModel)]="text" placeholder="content will be copy after click the copy button"> | ||
<span class="input-group-btn"> | ||
<button class="btn btn-default" type="button" ngIIclipboard [cbContent]="text">copy</button> | ||
<button class="btn btn-default" type="button" xngClipboard [cbContent]="text">copy</button> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<h3>Copy from text -- target</h3> | ||
<h3>Copy from text -- target</h3> | ||
Click this button, it will copy the text from the input by referring to the <strong>input element</strong> | ||
<div class="input-group"> | ||
<input type="text" class="form-control" [(ngModel)]="text2" placeholder="content will be copy after click the copy button" #inputTarget> | ||
<input type="text" class="form-control" [(ngModel)]="text2" placeholder="content will be copy after click the copy button" | ||
#inputTarget> | ||
<span class="input-group-btn"> | ||
<button class="btn btn-default" type="button" [ngIIclipboard]="inputTarget">copy</button> | ||
<button class="btn btn-default" type="button" [xngClipboard]="inputTarget">copy</button> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters