@@ -50,7 +50,7 @@ import { HeaderComponent, AlertsComponent, FooterComponent, IconsComponent, Inst
5050 // Import sub-modules
5151 imports : [
5252 BrowserAnimationsModule ,
53- BrowserModule . withServerTransition ( { appId : 'serverApp' } ) ,
53+ BrowserModule ,
5454 CommonModule ,
5555 // DayjsModule,
5656 FormsModule ,
@@ -71,19 +71,29 @@ import { HeaderComponent, AlertsComponent, FooterComponent, IconsComponent, Inst
7171 // Register the ServiceWorker as soon as the app is stable
7272 // or after 30 seconds (whichever comes first).
7373 registrationStrategy : 'registerWhenStable:30000'
74- } )
74+ } ) ,
75+ // Import standalone components
76+ AppComponent ,
77+ HeaderComponent ,
78+ AlertsComponent ,
79+ FooterComponent ,
80+ IconsComponent ,
81+ InstallPromptComponent ,
82+ NavbarComponent ,
83+ TimePickerComponent ,
84+ X404Component
7585 ] ,
7686
7787 // Define all the components, directives and pipes,
7888 // that are declared and used inside this module.
7989 // ? If you want to use any of these in multiple modules,
8090 // bundle it into a separate module & import that in the module
8191 declarations : [
82- AppComponent ,
92+ // AppComponent, // Now standalone
8393 //AppShellComponent,
84- NavbarComponent ,
85- FooterComponent ,
86- AlertsComponent ,
94+ // NavbarComponent, // Now standalone
95+ // FooterComponent, // Now standalone
96+ // AlertsComponent, // Now standalone
8797 GmapComponent ,
8898 LmapComponent ,
8999 EntryComponent ,
@@ -93,12 +103,15 @@ import { HeaderComponent, AlertsComponent, FooterComponent, IconsComponent, Inst
93103 //MoodEditor,
94104 //MoodRenderer,
95105 RangersComponent ,
96- X404Component ,
106+ // X404Component, // Now standalone
97107 LogComponent ,
98108 LocationComponent ,
99109 MiniGMapComponent ,
100- MiniLMapComponent ,
101- HeaderComponent ,
110+ MiniLMapComponent
111+ //HeaderComponent, // Now standalone
112+ //TimePickerComponent, // Now standalone
113+ //IconsComponent, // Now standalone
114+ //InstallPromptComponent // Now standalone,
102115 TimePickerComponent ,
103116 IconsComponent ,
104117 InstallPromptComponent
@@ -118,8 +131,7 @@ import { HeaderComponent, AlertsComponent, FooterComponent, IconsComponent, Inst
118131 // per https://angular.io/guide/singleton-services
119132 providers : [
120133 //ClockService, FieldReportService, LogService, PopupService, RangerService, SettingsService,
121- { provide : MAT_SNACK_BAR_DEFAULT_OPTIONS , useValue : { duration : 2500 } } ,
122- { provide : MAT_COLOR_FORMATS , useValue : NGX_MAT_COLOR_FORMATS }
134+ { provide : MAT_SNACK_BAR_DEFAULT_OPTIONS , useValue : { duration : 2500 } }
123135 ] ,
124136 //{provide: MAT_BANNER_DEFAULT_OPTIONS}],
125137 // Ranger,
@@ -133,6 +145,11 @@ import { HeaderComponent, AlertsComponent, FooterComponent, IconsComponent, Inst
133145 exports : [
134146 //AppShellComponent
135147 // SettingsComponent
148+ RouterModule ,
149+ MaterialModule ,
150+ FormsModule ,
151+ ReactiveFormsModule ,
152+ CommonModule
136153 ]
137154} )
138155export class AppModule { }
0 commit comments