From 19c8d2252a7cafddde84bdc81404b09f892d07ae Mon Sep 17 00:00:00 2001 From: Javier Aviles Date: Mon, 31 Dec 2018 17:14:37 +0100 Subject: [PATCH] docs(infinite-scroll): usage docs * Update readme.md * Update readme.md * Modifying readme for scrollInfinite in the right place --- core/src/components/infinite-scroll/readme.md | 6 +++--- core/src/components/infinite-scroll/usage/angular.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/components/infinite-scroll/readme.md b/core/src/components/infinite-scroll/readme.md index 19830e4ba0..5afc674b76 100644 --- a/core/src/components/infinite-scroll/readme.md +++ b/core/src/components/infinite-scroll/readme.md @@ -38,7 +38,7 @@ Separating the `ion-infinite-scroll` and `ion-infinite-scroll-content` component ```typescript import { Component, ViewChild } from '@angular/core'; -import { InfiniteScroll } from '@ionic/angular'; +import { IonInfiniteScroll } from '@ionic/angular'; @Component({ selector: 'infinite-scroll-example', @@ -46,7 +46,7 @@ import { InfiniteScroll } from '@ionic/angular'; styleUrls: ['./infinite-scroll-example.css'] }) export class InfiniteScrollExample { - @ViewChild(InfiniteScroll) infiniteScroll: InfiniteScroll; + @ViewChild(IonInfiniteScroll) infiniteScroll: IonInfiniteScroll; constructor() {} @@ -64,7 +64,7 @@ export class InfiniteScrollExample { } toggleInfiniteScroll() { - infiniteScroll.disabled = !infiniteScroll.disabled; + this.infiniteScroll.disabled = !this.infiniteScroll.disabled; } } ``` diff --git a/core/src/components/infinite-scroll/usage/angular.md b/core/src/components/infinite-scroll/usage/angular.md index 77bfcd03ac..61f46509e6 100644 --- a/core/src/components/infinite-scroll/usage/angular.md +++ b/core/src/components/infinite-scroll/usage/angular.md @@ -17,7 +17,7 @@ ```typescript import { Component, ViewChild } from '@angular/core'; -import { InfiniteScroll } from '@ionic/angular'; +import { IonInfiniteScroll } from '@ionic/angular'; @Component({ selector: 'infinite-scroll-example', @@ -25,7 +25,7 @@ import { InfiniteScroll } from '@ionic/angular'; styleUrls: ['./infinite-scroll-example.css'] }) export class InfiniteScrollExample { - @ViewChild(InfiniteScroll) infiniteScroll: InfiniteScroll; + @ViewChild(IonInfiniteScroll) infiniteScroll: IonInfiniteScroll; constructor() {} @@ -43,7 +43,7 @@ export class InfiniteScrollExample { } toggleInfiniteScroll() { - infiniteScroll.disabled = !infiniteScroll.disabled; + this.infiniteScroll.disabled = !this.infiniteScroll.disabled; } } ```