Skip to content

Commit 601ccd6

Browse files
committed
chore: reproduction
1 parent 1fb8506 commit 601ccd6

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<ion-header [translucent]="true">
2+
<ion-toolbar>
3+
<ion-title>*ngIf Usage</ion-title>
4+
</ion-toolbar>
5+
</ion-header>
6+
7+
<ion-content [fullscreen]="true">
8+
<ion-header collapse="condense">
9+
<ion-toolbar>
10+
<ion-title size="large">*ngIf Usage</ion-title>
11+
<ion-buttons *ngIf="isVisible">
12+
<ion-button>Toggle</ion-button>
13+
</ion-buttons>
14+
</ion-toolbar>
15+
</ion-header>
16+
</ion-content>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component } from '@angular/core';
2+
import { CommonModule } from '@angular/common';
3+
import { FormsModule } from '@angular/forms';
4+
import { IonicModule } from '@ionic/angular';
5+
6+
@Component({
7+
selector: 'app-control-syntax',
8+
templateUrl: './control-syntax.page.html',
9+
standalone: true,
10+
imports: [IonicModule, CommonModule, FormsModule],
11+
})
12+
export class ControlSyntaxPage {
13+
isVisible = true;
14+
}

apps/angular/ionic-angular-standalone/src/app/view-child/view-child.page.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@ import { IonContent, IonicModule } from '@ionic/angular';
1010
imports: [IonicModule, CommonModule, FormsModule],
1111
})
1212
export class ViewChildPage implements OnInit {
13-
/**
14-
* Referencing the template's ion-content results in a double call.
15-
*/
1613
@ViewChild(IonContent)
1714
content!: IonContent;
1815

19-
constructor() {}
16+
constructor() { }
2017

21-
ngOnInit() {}
18+
ngOnInit() { }
2219
}

0 commit comments

Comments
 (0)