Skip to content

Commit 24bab1c

Browse files
lukehookdanroth27
authored andcommitted
Correct RootComponent registration filename
Incorrect filename specified for Root component registration. Documentation states the 'Startup.cs' file but RootComponent registration occurs in the Program.cs file of the BlazingPizza.Client project
1 parent 06da08a commit 24bab1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/03-show-order-status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ This code illustrates how components can receive parameters from the router by d
201201

202202
If you're wondering how routing actually works, let's go through it step-by-step.
203203

204-
1. When the app first starts up, code in `Startup.cs` tells the framework to render `App` as the root component.
204+
1. When the app first starts up, code in `Program.cs` tells the framework to render `App` as the root component.
205205
2. The `App` component (in `App.razor`) contains a `<Router>`. `Router` is a built-in component that interacts with the browser's client-side navigation APIs. It registers a navigation event handler that gets notification whenever the user clicks on a link.
206206
3. Whenever the user clicks a link, code in `Router` checks whether the destination URL is within the same SPA (i.e., whether it's under the `<base href>` value, and it matches some component's declared routes). If it's not, traditional full-page navigation occurs as usual. But if the URL is within the SPA, `Router` will handle it.
207207
4. `Router` handles it by looking for a component with a compatible `@page` URL pattern. Each `{parameter}` token needs to have a value, and the value has to be compatible with any constraints such as `:int`.

0 commit comments

Comments
 (0)