mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
docs(slides): include import statements in usage (#10378)
Improve example - add import of slides for viewChild use
This commit is contained in:

committed by
Brandy Carney

parent
ac1a886158
commit
32e4e3191b
@ -65,6 +65,7 @@ import { ViewController } from '../../navigation/view-controller';
|
|||||||
*
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
* import { ViewChild } from '@angular/core';
|
* import { ViewChild } from '@angular/core';
|
||||||
|
* import { Slides } from 'ionic-angular';
|
||||||
*
|
*
|
||||||
* class MyPage {
|
* class MyPage {
|
||||||
* @ViewChild(Slides) slides: Slides;
|
* @ViewChild(Slides) slides: Slides;
|
||||||
@ -104,6 +105,9 @@ import { ViewController } from '../../navigation/view-controller';
|
|||||||
* should be used, where `freeMode` is the option to change:
|
* should be used, where `freeMode` is the option to change:
|
||||||
*
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
|
* import { ViewChild } from '@angular/core';
|
||||||
|
* import { Slides } from 'ionic-angular';
|
||||||
|
|
||||||
* class MyPage {
|
* class MyPage {
|
||||||
* @ViewChild(Slides) slides: Slides;
|
* @ViewChild(Slides) slides: Slides;
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user