diff --git a/core/src/components/refresher/usage/angular.md b/core/src/components/refresher/usage/angular.md index c780feaa3e..5c8e0b444f 100644 --- a/core/src/components/refresher/usage/angular.md +++ b/core/src/components/refresher/usage/angular.md @@ -1,23 +1,42 @@ ```html + - + + + + + + + + + ``` ```typescript -@Component({...}) -export class NewsFeedPage { +import { Component } from '@angular/core'; + +@Component({ + selector: 'refresher-example', + templateUrl: 'refresher-example.html', + styleUrls: ['./refresher-example.css'], +}) +export class RefresherExample { + constructor() {} doRefresh(event) { - console.log('Begin async operation', refresher); + console.log('Begin async operation'); setTimeout(() => { console.log('Async operation has ended'); event.target.complete(); }, 2000); } - } ``` diff --git a/core/src/components/refresher/usage/javascript.md b/core/src/components/refresher/usage/javascript.md index 30ed39a3fc..e2f9f47aa3 100644 --- a/core/src/components/refresher/usage/javascript.md +++ b/core/src/components/refresher/usage/javascript.md @@ -1,13 +1,12 @@ ```html + - - + - - +