mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
- Replace NgModule bootstrap with bootstrapApplication and ApplicationConfig - Convert app.module.ts to app.config.ts with provider functions - Convert routing module to standalone routes array - Remove domain NgModules (services now providedIn: 'root') - Remove NgRx application store in favor of signals - Update icon components and registries for modern patterns - Update page components for standalone compatibility
23 lines
724 B
TypeScript
23 lines
724 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { DevScanAdapter } from './dev.scan-adapter';
|
|
import { NativeScanAdapter } from './native.scan-adapter';
|
|
import { SCAN_ADAPTER } from './tokens';
|
|
|
|
/**
|
|
* @deprecated Use '@isa/shared/scanner' instead.
|
|
*/
|
|
@NgModule({})
|
|
export class ScanAdapterModule {
|
|
static forRoot() {
|
|
return {
|
|
ngModule: ScanAdapterModule,
|
|
providers: [
|
|
{ provide: SCAN_ADAPTER, useClass: NativeScanAdapter, multi: true },
|
|
{ provide: SCAN_ADAPTER, useClass: DevScanAdapter, multi: true },
|
|
],
|
|
// Use for testing:
|
|
// providers: [{ provide: SCAN_ADAPTER, useClass: dev ? DevScanAdapter : NativeScanAdapter, multi: true }],
|
|
};
|
|
}
|
|
}
|