Rename controllers and views
This commit is contained in:
parent
6560664615
commit
0405b1dd9c
@ -4,15 +4,16 @@ app.config(
|
|||||||
function ($routeProvider, $locationProvider)
|
function ($routeProvider, $locationProvider)
|
||||||
{
|
{
|
||||||
$routeProvider
|
$routeProvider
|
||||||
.when("/", {templateUrl: "views/news.html", controller: "news"})
|
.when("/", {templateUrl: "views/blog.html", controller: "blog"})
|
||||||
.when("/content", {templateUrl: "views/content.html", controller: "content"})
|
.when("/create", {templateUrl: "views/create.html", controller: "create"})
|
||||||
.when("/about", {templateUrl: "views/about.html", controller: "about"})
|
.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);
|
$locationProvider.html5mode(true);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
app.controller("news",
|
app.controller("blog",
|
||||||
[
|
[
|
||||||
"$scope",
|
"$scope",
|
||||||
"$http",
|
"$http",
|
||||||
@ -32,7 +33,7 @@ app.controller("news",
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
app.controller("content",
|
app.controller("create",
|
||||||
[
|
[
|
||||||
"$scope",
|
"$scope",
|
||||||
"$http",
|
"$http",
|
||||||
@ -89,7 +90,7 @@ app.controller("about",
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
app.controller("login",
|
app.controller("faq",
|
||||||
[
|
[
|
||||||
"$scope",
|
"$scope",
|
||||||
function($scope)
|
function($scope)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user