We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52143f6 commit b9edacdCopy full SHA for b9edacd
apps/angular/ionic-angular-standalone/src/app/view-child/view-child.page.ts
@@ -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