Skip to content

Commit 83cdafb

Browse files
committed
Fix for homeComponent snippet
1 parent 33614bc commit 83cdafb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tutorial/04-add-aad-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ In this section you'll create an authentication service and implement sign-in an
107107

108108
1. Open`./src/app/home/home.component.ts` and replace its contents with the following.
109109

110-
:::code language="typescript" source="snippets/snippets.ts" id="homeComponent" highlight="3,12-19,21,23,25-27":::
110+
:::code language="typescript" source="snippets/snippets.ts" id="homeSnippet" highlight="3,12-19,21,23,25-27":::
111111

112112
Save your changes and refresh the browser. Click the **Click here to sign in** button and you should be redirected to `https://login.microsoftonline.com`. Login with your Microsoft account and consent to the requested permissions. The app page should refresh, showing the token.
113113

tutorial/snippets/snippets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// <homeComponent>
1+
// <homeSnippet>
22
import { Component, OnInit } from '@angular/core';
33

44
import { AuthService } from '../auth.service';
@@ -32,4 +32,4 @@ export class HomeComponent implements OnInit {
3232
}
3333
}
3434
}
35-
// </homeComponent>
35+
// </homeSnippet>

0 commit comments

Comments
 (0)