Sha256: 24fecd4382ff6b792c76b1bbac21b9c02c203446f65a4ea23f1c02ddb97aa03b

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

Sprangular.controller "GlobalCtrl", ($scope, Status, Env, Flash) ->

  $scope.flash = Flash
  $scope.status = Status
  $scope.env = Env

  $scope.$watch 'status.pageTitle', (pageTitle) ->
    $scope.title = if pageTitle
      "#{pageTitle} - #{Env.config.site_name}"
    else
      Env.config.site_name

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sprangular-0.1.0 app/assets/javascripts/sprangular/controllers/global.coffee
sprangular-0.0.1 app/assets/javascripts/sprangular/controllers/global.coffee