mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Update Angular 2 Music Store sample to latest Angular 2 and other dependencies. Switch from asp-ng2-prerender-module to the more general asp-prerender-module.
This commit is contained in:
@@ -3,15 +3,12 @@
|
||||
}
|
||||
|
||||
<cache vary-by="@Context.Request.Path">
|
||||
<app asp-ng2-prerender-module="wwwroot/ng-app/components/app/app">
|
||||
Loading...
|
||||
</app>
|
||||
<app asp-prerender-module="wwwroot/ng-app/boot-server">Loading...</app>
|
||||
@await Html.PrimeCache(Url.Action("GenreMenuList", "GenresApi"))
|
||||
@await Html.PrimeCache(Url.Action("MostPopular", "AlbumsApi"))
|
||||
</cache>
|
||||
|
||||
@section scripts {
|
||||
@await Html.PrimeCache(Url.Action("GenreMenuList", "GenresApi"))
|
||||
@await Html.PrimeCache(Url.Action("MostPopular", "AlbumsApi"))
|
||||
|
||||
<script src="~/lib/angular2/bundles/angular2-polyfills.js"></script>
|
||||
<script src="~/lib/traceur/bin/traceur-runtime.js"></script>
|
||||
<script src="~/lib/es6-module-loader/dist/es6-module-loader-sans-promises.js"></script>
|
||||
@@ -22,5 +19,5 @@
|
||||
<script src="~/lib/angular2/bundles/router.dev.js"></script>
|
||||
<script src="~/lib/angular2/bundles/http.dev.js"></script>
|
||||
<script src="~/lib/angular2-aspnet/bundles/angular2-aspnet.js"></script>
|
||||
<script>System.import('./ng-app/components/app/bootstrap');</script>
|
||||
<script>System.import('./ng-app/boot-client');</script>
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@using MusicStore
|
||||
@using Microsoft.AspNet.AngularServices
|
||||
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
|
||||
@addTagHelper "*, Microsoft.AspNet.AngularServices"
|
||||
@addTagHelper "*, Microsoft.AspNet.SpaServices"
|
||||
|
||||
Reference in New Issue
Block a user