diff --git a/apps/angular/ionic-angular-modules/package.json b/apps/angular/ionic-angular-modules/package.json index fd07ac0..b8b2374 100644 --- a/apps/angular/ionic-angular-modules/package.json +++ b/apps/angular/ionic-angular-modules/package.json @@ -18,7 +18,7 @@ "@angular/platform-browser": "^16.0.0", "@angular/platform-browser-dynamic": "^16.0.0", "@angular/router": "^16.0.0", - "@ionic/angular": "^7.0.0", + "@ionic/angular": "^7.5.0", "ionicons": "^7.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", diff --git a/apps/angular/ionic-angular-standalone/package.json b/apps/angular/ionic-angular-standalone/package.json index 1522c62..d1f9b02 100644 --- a/apps/angular/ionic-angular-standalone/package.json +++ b/apps/angular/ionic-angular-standalone/package.json @@ -26,7 +26,7 @@ "@capacitor/haptics": "5.0.6", "@capacitor/keyboard": "5.0.6", "@capacitor/status-bar": "5.0.6", - "@ionic/angular": "^7.0.0", + "@ionic/angular": "^7.5.0", "ionicons": "^7.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.html b/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.html new file mode 100644 index 0000000..ab49bf7 --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.html @@ -0,0 +1,13 @@ + + + lifecycle + + + + + + + lifecycle + + + diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.scss b/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.spec.ts b/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.spec.ts new file mode 100644 index 0000000..3ee9300 --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.spec.ts @@ -0,0 +1,17 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { LifecyclePage } from './lifecycle.page'; + +describe('LifecyclePage', () => { + let component: LifecyclePage; + let fixture: ComponentFixture; + + beforeEach(async(() => { + fixture = TestBed.createComponent(LifecyclePage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.ts b/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.ts new file mode 100644 index 0000000..bc5f886 --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/lifecycle/lifecycle.page.ts @@ -0,0 +1,34 @@ +import { Component, OnInit } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { IonicModule, ViewWillEnter, ViewDidEnter, ViewWillLeave, ViewDidLeave } from '@ionic/angular'; + +@Component({ + selector: 'app-lifecycle', + templateUrl: './lifecycle.page.html', + styleUrls: ['./lifecycle.page.scss'], + standalone: true, + imports: [IonicModule, CommonModule, FormsModule] +}) +/** + * Error due to `@ionic/angular/standalone` not containing a lifecycle. + */ +export class LifecyclePage implements OnInit, ViewWillEnter, ViewDidEnter, ViewWillLeave, ViewDidLeave { + + constructor() { } + + ngOnInit() { + } + + ionViewWillEnter() { + } + + ionViewDidEnter() { + } + + ionViewWillLeave() { + } + + ionViewDidLeave() { + } +} diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.html b/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.html new file mode 100644 index 0000000..594fe97 --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.html @@ -0,0 +1,22 @@ + + + + + + + + + +
+ + + Login + +
+
diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.scss b/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.spec.ts b/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.spec.ts new file mode 100644 index 0000000..35433f2 --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.spec.ts @@ -0,0 +1,17 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { NotImportOnePage } from './not-import-one.page'; + +describe('NotImportOnePage', () => { + let component: NotImportOnePage; + let fixture: ComponentFixture; + + beforeEach(async(() => { + fixture = TestBed.createComponent(NotImportOnePage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.ts b/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.ts new file mode 100644 index 0000000..7c2408d --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/not-import-one/not-import-one.page.ts @@ -0,0 +1,22 @@ +import { Component, OnInit } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { IonicModule } from '@ionic/angular'; + +@Component({ + selector: 'app-not-import-one', + templateUrl: './not-import-one.page.html', + styleUrls: ['./not-import-one.page.scss'], + standalone: true, + imports: [IonicModule, CommonModule, FormsModule] +}) +export class NotImportOnePage implements OnInit { + isForce = false; + isLoading = false; + isSpinner = false; + constructor() { } + + ngOnInit() { + } + +} diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.html b/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.html new file mode 100644 index 0000000..89b56ea --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.html @@ -0,0 +1,13 @@ + + + view-child + + + + + + + view-child + + + diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.scss b/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.spec.ts b/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.spec.ts new file mode 100644 index 0000000..d55d140 --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.spec.ts @@ -0,0 +1,17 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { ViewChildPage } from './view-child.page'; + +describe('ViewChildPage', () => { + let component: ViewChildPage; + let fixture: ComponentFixture; + + beforeEach(async(() => { + fixture = TestBed.createComponent(ViewChildPage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.ts b/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.ts new file mode 100644 index 0000000..0cd3b54 --- /dev/null +++ b/apps/angular/ionic-angular-standalone/src/app/issue/view-child/view-child.page.ts @@ -0,0 +1,24 @@ +import {Component, OnInit, ViewChild} from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import {IonContent, IonicModule} from '@ionic/angular'; + +@Component({ + selector: 'app-view-child', + templateUrl: './view-child.page.html', + styleUrls: ['./view-child.page.scss'], + standalone: true, + imports: [IonicModule, CommonModule, FormsModule] +}) +export class ViewChildPage implements OnInit { + /** + * Referencing the template's ion-content results in a double call. + */ + @ViewChild(IonContent) + content!: IonContent; + + constructor() { } + + ngOnInit() { + } +}