Skip to content

Commit 2e7e3ac

Browse files
Add menu for navigation
1 parent a8b21c1 commit 2e7e3ac

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ comes with a LSP for Vim users.
1212

1313
## Start the application
1414

15-
Run `npx nx serve angular-mfe-nx` to start the development server. Happy coding!
15+
Run `npx nx serve app-shell` to start the development server. Happy coding!
1616

1717
## Build for production
1818

19-
Run `npx nx build angular-mfe-nx` to build the application. The build artifacts are stored in the output directory (e.g. `dist/` or `build/`), ready to be deployed.
19+
Run `npx nx build app-shell` to build the application. The build artifacts are stored in the output directory (e.g. `dist/` or `build/`), ready to be deployed.
2020

2121
## Running tasks
2222

@@ -133,3 +133,6 @@ Change apps/app-shell/src/app/app.component.html
133133
<router-outlet></router-outlet>
134134
```
135135

136+
Change the HTML in the other two apps.
137+
138+
Include the new UI Components.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<h2>App One</h2>
22
<lib-ui-label></lib-ui-label>
3+
<lib-ui-button></lib-ui-button>
34
<router-outlet></router-outlet>

apps/app-one/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Component } from '@angular/core';
22
import { RouterModule } from '@angular/router';
3-
import { UiLabelComponent } from '@angular-mfe-nx/ui';
3+
import { UiButtonComponent, UiLabelComponent } from '@angular-mfe-nx/ui';
44

55
@Component({
66
standalone: true,
7-
imports: [RouterModule, UiLabelComponent],
7+
imports: [RouterModule, UiLabelComponent, UiButtonComponent],
88
selector: 'app-root',
99
templateUrl: './app.component.html',
1010
styleUrl: './app.component.scss',
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
<h1>App Shell</h1>
2+
<p>This demonstrates Angular MFE architecture using NX.</p>
3+
<p>This is the app-shell. It uses routing to load 2 remote MFE apps.</p>
4+
<p>All apps share a common UI Library that shows how to share UI components.</p>
5+
<ul>
6+
<li><a routerLink="/">Home</a></li>
7+
<li><a routerLink="/app-one">App One</a></li>
8+
<li><a routerLink="/app-two">App Two</a></li>
9+
</ul>
210
<router-outlet></router-outlet>

0 commit comments

Comments
 (0)