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

Commit

Permalink
Nodemon Heroku Support
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Aug 27, 2013
1 parent d9db704 commit 5c58883
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: ./node_modules/.bin/forever -m 5 server.js
web: ./node_modules/.bin/nodemon server.js
6 changes: 6 additions & 0 deletions public/js/controllers/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ function HeaderController($scope, $location, Global) {
$scope.init = function() {

};

$scope.isSelected = function(item) {
if ($location.path() == "/"+item.link) {
return "active"
} else return ""
}
}
2 changes: 1 addition & 1 deletion public/views/header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="navbar-inner" data-ng-controller="HeaderController" data-ng-init="init()">
<ul class="nav">
<li><a class="brand" href="/">MEAN - A Modern Stack</a></li>
<li data-ng-repeat="item in menu" data-ng-show="global.user" data-ng-class="{active: isSelected(item)}"><a href="#!/{{item.link}}">{{item.title}}</a></li>
<li data-ng-repeat="item in menu" data-ng-show="global.user" data-ng-class="isSelected(item)"><a href="#!/{{item.link}}">{{item.title}}</a></li>
</ul>
<ul class="nav pull-right" data-ng-hide="global.authenticated">
<li><a href="signup">Signup</a></li>
Expand Down

0 comments on commit 5c58883

Please sign in to comment.