Sha256: 709a9b30122c7f7dc110fa8bbc9ff6bd3e51c5685f997a584cffd2ea3bc0783f

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

class CollectionsStatsCtrl
  @$inject = ["$scope", "$routeParams", "Collection"]
  constructor: (@$scope, $routeParams, Collection) ->
    { @dbName, @collectionName } = $routeParams

    @$scope.dbName = @dbName
    @$scope.collectionName = @collectionName

    @collection = new Collection(dbName: @dbName, name: @collectionName)
    @fetchStats()

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

angular.module("mb")
  .controller("collections.stats", CollectionsStatsCtrl)

Version data entries

1 entries across 1 versions & 1 rubygems

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