app.controller('NavCtrl', ['$scope', '$name', function(scope, name) { scope.name = name; }]);