Skip to content

Commit

Permalink
Cleanups for Razor Components template
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS authored and mkArtakMSFT committed Jan 17, 2019
1 parent 694eaf7 commit 0714466
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">RazorComponentsWeb_CSharp.App</RootNamespace>
</PropertyGroup>

<!-- TODO: Remove this once it's included in the shared framework -->
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Browser" Version="${MicrosoftAspNetCoreComponentsPackageVersion}" />
<PackageReference Include="Microsoft.AspNetCore.Components.Build" Version="${MicrosoftAspNetCoreComponentsPackageVersion}" PrivateAssets="all" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Configuring this here is temporary. Later we'll move the app config
into Program.cs, and it won't be necessary to specify AppAssembly.
-->
@*
The Router component displays whichever component has a @page
directive matching the current URI.
*@
<Router AppAssembly=typeof(Startup).Assembly />
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using RazorComponentsWeb_CSharp.App.Services
@page "/fetchdata"
@page "/fetchdata"
@using RazorComponentsWeb_CSharp.App.Services
@inject WeatherForecastService ForecastService

<h1>Weather forecast</h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div class="main">
<div class="top-row px-4">
<a href="https://blazor.net" target="_blank" class="ml-md-auto">About</a>
<a href="https://docs.microsoft.com/en-us/aspnet/" target="_blank" class="ml-md-auto">About</a>
</div>

<div class="content px-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// Since Blazor is running on the server, we can use an application service
// to read the forecast data.
// Example of a data service
services.AddSingleton<WeatherForecastService>();
}

Expand Down

0 comments on commit 0714466

Please sign in to comment.