Skip to content

Commit

Permalink
feat(core): link "appointments" route with feature lib
Browse files Browse the repository at this point in the history
  • Loading branch information
draylegend committed Sep 23, 2022
1 parent ad5a15b commit d1058ba
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"singleQuote": true
"arrowParens": "avoid",
"singleQuote": true,
"trailingComma": "all"
}
2 changes: 1 addition & 1 deletion apps/angular-client/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>angular-client works!</p>
<router-outlet></router-outlet>
2 changes: 2 additions & 0 deletions apps/angular-client/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'im-root',
standalone: true,
templateUrl: './app.component.html',
imports: [RouterOutlet],
})
export class AppComponent {}
14 changes: 13 additions & 1 deletion libs/core/domain/src/lib/routes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
import { Routes } from '@angular/router';

export default [] as Routes;
export default [
{
path: 'appointments',
loadComponent: () =>
import('@immomio/appointment/feature').then(
m => m.AppointmentFeatureComponent,
),
},
{
path: '**',
redirectTo: 'appointments',
},
] as Routes;

0 comments on commit d1058ba

Please sign in to comment.