mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
Merge remote-tracking branch 'origin/feature-8.0' into sp/sync-next-with-v8
This commit is contained in:
@ -46,9 +46,8 @@ export class IonRouterOutlet extends IonRouterOutletBase {
|
||||
router: Router,
|
||||
zone: NgZone,
|
||||
activatedRoute: ActivatedRoute,
|
||||
outletContent: ViewContainerRef,
|
||||
@SkipSelf() @Optional() readonly parentOutlet?: IonRouterOutlet
|
||||
) {
|
||||
super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, outletContent, parentOutlet);
|
||||
super(name, tabs, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { DOCUMENT } from '@angular/common';
|
||||
import { APP_INITIALIZER } from '@angular/core';
|
||||
import type { Provider } from '@angular/core';
|
||||
import { APP_INITIALIZER, makeEnvironmentProviders } from '@angular/core';
|
||||
import type { EnvironmentProviders } from '@angular/core';
|
||||
import { AngularDelegate, ConfigToken, provideComponentInputBinding } from '@ionic/angular/common';
|
||||
import { initialize } from '@ionic/core/components';
|
||||
import type { IonicConfig } from '@ionic/core/components';
|
||||
@ -8,13 +8,8 @@ import type { IonicConfig } from '@ionic/core/components';
|
||||
import { ModalController } from './modal-controller';
|
||||
import { PopoverController } from './popover-controller';
|
||||
|
||||
export const provideIonicAngular = (config?: IonicConfig): Provider[] => {
|
||||
/**
|
||||
* TODO FW-4967
|
||||
* Use makeEnvironmentProviders once Angular 14 support is dropped.
|
||||
* This prevents provideIonicAngular from being accidentally referenced in an @Component.
|
||||
*/
|
||||
return [
|
||||
export const provideIonicAngular = (config?: IonicConfig): EnvironmentProviders => {
|
||||
return makeEnvironmentProviders([
|
||||
{
|
||||
provide: ConfigToken,
|
||||
useValue: config,
|
||||
@ -29,7 +24,7 @@ export const provideIonicAngular = (config?: IonicConfig): Provider[] => {
|
||||
AngularDelegate,
|
||||
ModalController,
|
||||
PopoverController,
|
||||
];
|
||||
]);
|
||||
};
|
||||
|
||||
const initializeIonicAngular = (config: IonicConfig, doc: Document) => {
|
||||
|
||||
Reference in New Issue
Block a user