Skip to content

Commit

Permalink
fix(demo): fix demo to work with 2.0.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisam committed Dec 18, 2016
1 parent 0dff0d4 commit 1da9c8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions demo/systemJS/app/app.component.html
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>
6 changes: 3 additions & 3 deletions demo/systemJS/systemjs.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
// other libraries
'rxjs': 'npm:rxjs',
'ts': 'npm:plugin-typescript@4.0.10/lib/plugin.js',
'typescript': 'npm:typescript@2.0.2/lib/typescript.js',
'clipboard': 'npm:clipboard@1.5.12/dist/clipboard.js',
'angular2-clipboard': 'npm:angular2-clipboard@1.0.0'
'typescript': 'npm:typescript@2.1.4/lib/typescript.js',
'clipboard': 'npm:clipboard@1.5.16/dist/clipboard.js',
'angular2-clipboard': 'npm:angular2-clipboard@2.0.3'
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
Expand Down

0 comments on commit 1da9c8f

Please sign in to comment.