Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Articles Example Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Jul 25, 2013
1 parent 60b1331 commit 23dc7a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions public/js/controllers/articles.js
Original file line number Diff line number Diff line change
@@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion public/views/articles/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ <h2><a data-ng-href="#!/articles/{{article._id}}">{{article.title}}</a></h2>
<div>{{article.content}}</div>
</li>
</ul>
<h1 data-ng-hide="articles.length">No articles yet. <br> Why don't you <a href="/#!/articles/create">Create One</a>?</h1>
<h1 data-ng-hide="!articles || articles.length">No articles yet. <br> Why don't you <a href="/#!/articles/create">Create One</a>?</h1>
</section>

0 comments on commit 23dc7a3

Please sign in to comment.