mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
update content.ts
This commit is contained in:
@@ -247,7 +247,7 @@ export class Content extends Ion {
|
||||
}
|
||||
|
||||
/**
|
||||
* Scroll to the specified position.
|
||||
* Scroll to the top of the content component.
|
||||
*
|
||||
* ```ts
|
||||
* @Page({
|
||||
@@ -265,7 +265,7 @@ export class Content extends Ion {
|
||||
* this.content = this.app.getComponent('my-content');
|
||||
* }
|
||||
* scrollTop() {
|
||||
* this.content.scrollTop();
|
||||
* this.content.scrollToTop();
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
|
||||
Reference in New Issue
Block a user