Skip to content

Commit b9edacd

Browse files
committed
chore: view child example page
1 parent 52143f6 commit b9edacd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Component, OnInit, ViewChild } from '@angular/core';
2+
import { CommonModule } from '@angular/common';
3+
import { FormsModule } from '@angular/forms';
4+
import { IonContent, IonicModule } from '@ionic/angular';
5+
6+
@Component({
7+
selector: 'app-view-child',
8+
templateUrl: './view-child.page.html',
9+
standalone: true,
10+
imports: [IonicModule, CommonModule, FormsModule]
11+
})
12+
export class ViewChildPage implements OnInit {
13+
/**
14+
* Referencing the template's ion-content results in a double call.
15+
*/
16+
@ViewChild(IonContent)
17+
content!: IonContent;
18+
19+
constructor() { }
20+
21+
ngOnInit() { }
22+
}

0 commit comments

Comments
 (0)