Skip to content

Commit 71dcfe6

Browse files
committed
simple example updated to view cd run in console
1 parent 3452925 commit 71dcfe6

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/app/component/examples/simple.route.component.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { AComponent } from './AComponent';
2020
<div class="container">
2121
<sp-example-title [type]="exampleEnum.SIMPLE"></sp-example-title>
2222
<div class="split-example">
23-
<as-split [direction]="direction">
23+
<as-split [direction]="direction" (dragProgress)="log($event)">
2424
<as-split-area size="30">
2525
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tiam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
2626
</as-split-area>
@@ -31,10 +31,20 @@ import { AComponent } from './AComponent';
3131
</div>
3232
<br>
3333
<div class="btns">
34+
{{ testChangeDetectorRun() }}
3435
<button class="btn btn-warning" (click)="direction = (direction === 'horizontal') ? 'vertical' : 'horizontal'">{{ 'Toggle direction: "' + direction + '"' }}</button>
3536
</div>
3637
</div>`
3738
})
3839
export class SimpleComponent extends AComponent {
3940
direction: string = 'horizontal'
41+
42+
testChangeDetectorRun() {
43+
console.log('Change detector run just now !', Date.now())
44+
return '';
45+
}
46+
47+
log($event) {
48+
console.log('>>>>', $event);
49+
}
4050
}

0 commit comments

Comments
 (0)