From 23dc7a3395b0d1e4e9092a5fab3be57d370f6957 Mon Sep 17 00:00:00 2001 From: Amos Haviv Date: Thu, 25 Jul 2013 16:25:43 +0300 Subject: [PATCH] Articles Example Fix --- public/js/controllers/articles.js | 2 -- public/views/articles/list.html | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/public/js/controllers/articles.js b/public/js/controllers/articles.js index b65381b0c5..b41fc5a111 100644 --- a/public/js/controllers/articles.js +++ b/public/js/controllers/articles.js @@ -1,7 +1,5 @@ function ArticlesController($scope, $routeParams, $location, Global, Articles) { $scope.global = Global; - $scope.articles = []; - $scope.article = {}; $scope.create = function () { var article = new Articles({ title: this.title, content: this.content }); diff --git a/public/views/articles/list.html b/public/views/articles/list.html index 23fe544a0d..471a775765 100644 --- a/public/views/articles/list.html +++ b/public/views/articles/list.html @@ -7,5 +7,5 @@

{{article.title}}

{{article.content}}
-

No articles yet.
Why don't you Create One?

+

No articles yet.
Why don't you Create One?

\ No newline at end of file