Rename controllers and views

This commit is contained in:
Thomas Wade 2018-10-17 22:06:37 +10:30
parent 6560664615
commit 0405b1dd9c

View File

@ -4,15 +4,16 @@ app.config(
function ($routeProvider, $locationProvider)
{
$routeProvider
.when("/", {templateUrl: "views/news.html", controller: "news"})
.when("/content", {templateUrl: "views/content.html", controller: "content"})
.when("/", {templateUrl: "views/blog.html", controller: "blog"})
.when("/create", {templateUrl: "views/create.html", controller: "create"})
.when("/about", {templateUrl: "views/about.html", controller: "about"})
.when("/login", {templateUrl: "views/login.html", controller: "login"});
.when("/faq", {templateUrl: "views/faq.html", controller: "faq"})
.otherwise("<h1>yeey</h1>");
$locationProvider.html5mode(true);
}
);
app.controller("news",
app.controller("blog",
[
"$scope",
"$http",
@ -32,7 +33,7 @@ app.controller("news",
]
);
app.controller("content",
app.controller("create",
[
"$scope",
"$http",
@ -89,7 +90,7 @@ app.controller("about",
]
);
app.controller("login",
app.controller("faq",
[
"$scope",
function($scope)