Use cache priming in Music Store sample

This commit is contained in:
SteveSandersonMS
2015-12-10 20:30:02 +00:00
parent 7924a6527a
commit 8a0cbe789e
4 changed files with 8 additions and 3 deletions

View File

@@ -9,6 +9,9 @@
</cache>
@section scripts {
@await Html.PrimeCache(Url.Action("GenreMenuList", "GenresApi"))
@await Html.PrimeCache(Url.Action("MostPopular", "AlbumsApi"))
<script src="~/lib/traceur/bin/traceur-runtime.js"></script>
<script src="~/lib/es6-module-loader/dist/es6-module-loader-sans-promises.js"></script>
<script src="~/lib/reflect-metadata/Reflect.js"></script>

View File

@@ -1,3 +1,4 @@
@using MusicStore
@using Microsoft.AspNet.AngularServices
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
@addTagHelper "*, Microsoft.AspNet.AngularServices"

View File

@@ -3,7 +3,7 @@
"version": "0.0.0",
"dependencies": {
"angular2": "2.0.0-alpha.44",
"angular2-aspnet": "0.0.1",
"angular2-aspnet": "^0.0.3",
"angular2-universal-patched": "^0.5.4",
"bootstrap": "^3.3.5",
"es6-module-loader": "^0.15.0",

View File

@@ -1,6 +1,7 @@
import * as ng from 'angular2/angular2';
import * as router from 'angular2/router';
import { Http, HTTP_BINDINGS } from 'angular2/http';
import { Http, HTTP_PROVIDERS } from 'angular2/http';
import { CACHE_PRIMED_HTTP_PROVIDERS } from 'angular2-aspnet';
import { App } from './app';
ng.bootstrap(App, [router.ROUTER_BINDINGS, HTTP_BINDINGS, ng.FormBuilder]);
ng.bootstrap(App, [router.ROUTER_BINDINGS, HTTP_PROVIDERS, CACHE_PRIMED_HTTP_PROVIDERS, ng.FormBuilder]);