diff --git a/ionic/components/app/id.ts b/ionic/components/app/id.ts index c055008f21..cc5f83e604 100644 --- a/ionic/components/app/id.ts +++ b/ionic/components/app/id.ts @@ -19,13 +19,14 @@ import {IonicApp} from './app'; * service: * ```ts * constructor(app: IonicApp) { - * this.app = app + * this.app = app * } - * ngAfterViewInit{ - * var checkbox = this.app.getComponent("myCheckbox"); - * if (checkbox.checked) { - * console.log('checkbox is checked'); - * } + * + * ngAfterViewInit() { + * var checkbox = this.app.getComponent("myCheckbox"); + * if (checkbox.checked) { + * console.log('checkbox is checked'); + * } * } * ``` *