How to change Page Title for each component - Angular #541

Closed
opened 2025-08-09 17:16:41 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ahmagdy on 7/28/2017

i'm using ASP Core with Angular
always the page index.cshtml which contains

@{
    ViewData["Title"] = "Home Page";
}

<app asp-prerender-module="ClientApp/dist/main-server">Loading...</app>
<script src="~/dist/vendor.js" asp-append-version="true"></script>
@section scripts {
    <script src="~/dist/main-client.js" asp-append-version="true"></script>
}

is rendered
and the title Home Page - WebApplicationBasic is stick in all pages 'components'
how i can change the title for each component

*Originally created by @ahmagdy on 7/28/2017* i'm using ASP Core with Angular always the page index.cshtml which contains ``` @{ ViewData["Title"] = "Home Page"; } <app asp-prerender-module="ClientApp/dist/main-server">Loading...</app> <script src="~/dist/vendor.js" asp-append-version="true"></script> @section scripts { <script src="~/dist/main-client.js" asp-append-version="true"></script> } ``` is rendered and the title Home Page - WebApplicationBasic is stick in all pages 'components' how i can change the title for each component
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#541
No description provided.