docs(slides): include import statements in usage (#10378)

Improve example - add import of slides for viewChild use
This commit is contained in:
Gary Gitton
2017-02-24 17:38:03 +01:00
committed by Brandy Carney
parent ac1a886158
commit 32e4e3191b

View File

@ -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;
* *