generator-ngfs
Version:
Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node
24 lines (23 loc) • 499 B
text/coffeescript
'use strict'
angular.module('<%= scriptAppName %>')
.controller 'NavbarCtrl', ['$scope', '$location', ($scope, $location) ->
$scope.menu = [
title: 'Home'
link: '/'
,
title: 'About'
link: '#'
,
title: 'Contact'
link: '#'
<% if(mongo && mongoPassportUser) { %>,
title: 'Sign Up'
link: '#/signup'
,
title: 'Login'
link: '#/login'
}<% } %>
]
$scope.isActive = (route) ->
route is $location.path()
]