From 0405b1dd9c46c4a8ee70b4fafdcd48de4f538c9e Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Wed, 17 Oct 2018 22:06:37 +1030 Subject: [PATCH] Rename controllers and views --- scripts/app.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/app.js b/scripts/app.js index 3878da7..68eba2e 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -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("

yeey

"); $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)