mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -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');
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user