Sha256: 943a8db9c7a551c67d55440177b70391917eba9febab93fcb002eb01efeda8b2

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

class DatabasesStatsCtrl
  @$inject = ["$scope", "$routeParams", "Database"]
  constructor: (@$scope, $routeParams, Database) ->
    { @dbName } = $routeParams
    @$scope.dbName = @dbName

    @database = new Database(name: @dbName)
    @fetchStats()

  fetchStats: ->
    @database.$stats (data) =>
      @$scope.stats = data

angular.module("mb")
  .controller("databases.stats", DatabasesStatsCtrl)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_browser-0.2.5 app/assets/javascripts/app/controllers/databases/stats_controller.js.coffee