Skip to content

Commit

Permalink
chore(testbed): align structure with current Angular project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalcher committed Nov 19, 2023
1 parent efeb2f8 commit 527d173
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 7 additions & 0 deletions packages/testbed/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';

export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes)],
};
2 changes: 1 addition & 1 deletion packages/testbed/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ShowsComponent } from './pages/shows/shows.component';
import { VolumebusComponent } from './pages/volumebus/volumebus.component';
import { AutomixComponent } from './pages/automix/automix.component';

export const APP_ROUTES: Routes = [
export const routes: Routes = [
{ path: '', redirectTo: 'master', pathMatch: 'full' },
{ path: 'master', component: MasterComponent },
{ path: 'masterbus', component: MasterBusComponent },
Expand Down
7 changes: 2 additions & 5 deletions packages/testbed/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { bootstrapApplication } from '@angular/platform-browser';
import { provideRouter } from '@angular/router';
import { AppComponent } from './app/app.component';
import { APP_ROUTES } from './app/app.routes';
import { appConfig } from './app/app.config';

bootstrapApplication(AppComponent, {
providers: [provideRouter(APP_ROUTES)],
});
bootstrapApplication(AppComponent, appConfig).catch(err => console.error(err));

0 comments on commit 527d173

Please sign in to comment.