diff --git a/src/Web/Scripts/app.ts b/src/Web/Scripts/app.ts index 2aaaec9..fb41113 100644 --- a/src/Web/Scripts/app.ts +++ b/src/Web/Scripts/app.ts @@ -50,7 +50,7 @@ angular.module('app', ['ui.router', 'app.filters', 'app.services', 'app.directiv // contains a pre-rendered template for the current view // caching it will prevent a round-trip to a server at the first page load - var view = angular.element('#ui-view'); + var view = angular.element('#initial-view'); $templateCache.put(view.data('tmpl-url'), view.html()); // Allows to retrieve UI Router state information from inside templates diff --git a/src/Web/Views/_Layout.cshtml b/src/Web/Views/_Layout.cshtml index 8f27e6a..8d863a6 100644 --- a/src/Web/Views/_Layout.cshtml +++ b/src/Web/Views/_Layout.cshtml @@ -42,10 +42,14 @@ -
- @RenderBody() +
+
+ + @Scripts.Render("~/js/app")