forked from vczh-libraries/GacJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MVC.html
28 lines (24 loc) · 1.07 KB
/
MVC.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>MVC</title>
<link rel="stylesheet" type="text/css" href="./TestPage.css" />
<script src="./LoadPackages.js"></script>
<script src="./TestPage.js"></script>
</head>
<body>
<script>
InitializeMvc("~", "./Test/MVC/Root.razor.html", "./Test/MVC/Loading.razor.html", { Name: "vczh" });
var HomeController = CreateMvcControllerType("MvcTest.HomeController", "./Test/MVC/Home.razor.html");
RegisterNavigationPath("/", HomeController);
RegisterNavigationPath("/Home", HomeController);
var PostsController = CreateMvcControllerType("MvcTest.PostsController", "./Test/MVC/Posts.razor.html");
RegisterNavigationPath("/Posts", PostsController);
for (var i = 1; i <= 3; i++) {
var IndividualPostController = CreateMvcControllerType("MvcTest.IndividualPostController<" + i + ">", "./Test/MVC/Post_" + i + ".razor.html");
RegisterNavigationPath("/" + i, IndividualPostController, {}, PostsController);
}
StartNavigation("");
</script>
</body>
</html>