Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit e8b2ba8

Browse files
committed
Booting aurelia into a div in Index.cshtml
1 parent 790b719 commit e8b2ba8

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

templates/AureliaSpa/Views/Home/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@{
22
ViewData["Title"] = "Home Page";
33
}
4-
4+
<div aurelia-app="boot"></div>
55
@section scripts {
66
<script type="text/javascript" src="~/dist/aurelia-modules-bundle.js"asp-append-version="true"></script>
77
<script type="text/javascript" src="~/dist/app-bundle.js" asp-append-version="true"></script>

templates/AureliaSpa/Views/Shared/_Layout.cshtml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
<title>@ViewData["Title"] - Aurelia</title>
77
<base href="/" />
88
</head>
9-
<body aurelia-app="boot">
9+
<body>
1010
@RenderBody()
1111

12-
@RenderSection("scripts", required: false)
13-
14-
12+
@RenderSection("scripts", required: false)
1513
</body>
1614
</html>

0 commit comments

Comments
 (0)