mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Use cache priming in Music Store sample
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
</cache>
|
</cache>
|
||||||
|
|
||||||
@section scripts {
|
@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/traceur/bin/traceur-runtime.js"></script>
|
||||||
<script src="~/lib/es6-module-loader/dist/es6-module-loader-sans-promises.js"></script>
|
<script src="~/lib/es6-module-loader/dist/es6-module-loader-sans-promises.js"></script>
|
||||||
<script src="~/lib/reflect-metadata/Reflect.js"></script>
|
<script src="~/lib/reflect-metadata/Reflect.js"></script>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
@using MusicStore
|
@using MusicStore
|
||||||
|
@using Microsoft.AspNet.AngularServices
|
||||||
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
|
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
|
||||||
@addTagHelper "*, Microsoft.AspNet.AngularServices"
|
@addTagHelper "*, Microsoft.AspNet.AngularServices"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"angular2": "2.0.0-alpha.44",
|
"angular2": "2.0.0-alpha.44",
|
||||||
"angular2-aspnet": "0.0.1",
|
"angular2-aspnet": "^0.0.3",
|
||||||
"angular2-universal-patched": "^0.5.4",
|
"angular2-universal-patched": "^0.5.4",
|
||||||
"bootstrap": "^3.3.5",
|
"bootstrap": "^3.3.5",
|
||||||
"es6-module-loader": "^0.15.0",
|
"es6-module-loader": "^0.15.0",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import * as ng from 'angular2/angular2';
|
import * as ng from 'angular2/angular2';
|
||||||
import * as router from 'angular2/router';
|
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';
|
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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user