Add server-side prerendering for Angular 2 template

This commit is contained in:
SteveSandersonMS
2016-02-29 19:29:04 +00:00
parent 6d2e51bf63
commit 47ba251923
13 changed files with 50 additions and 134 deletions

View File

@@ -2,7 +2,7 @@
ViewData["Title"] = "Home Page";
}
<app>Loading...</app>
<app asp-prerender-module="ClientApp/boot-server">Loading...</app>
@section scripts {
<script src="~/dist/main.js" asp-append-version="true"></script>

View File

@@ -1,2 +1,3 @@
@using WebApplicationBasic
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
@addTagHelper "*, Microsoft.AspNet.SpaServices"