Sha256: 604b68096ed886b05bafcef07a952f6d660436a19e05c0eca43af9dac0df36a7

Contents?: true

Size: 1.59 KB

Versions: 11

Compression:

Stored size: 1.59 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1372527233.083679:@value"ö{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"Ccollection_json_browser/angular/controllers/api_conntroller.js;TI"
pathname;FI"„/Users/weilu/workspace/collection-json-browser/app/assets/javascripts/collection_json_browser/angular/controllers/api_conntroller.js;TI"content_type;FI"application/javascript;FI"
mtime;FI"2013-06-30T01:15:40+08:00;FI"length;FiI"digest;F"%c1f238bcb5ca884bb2d36e475ccb402dI"source;FI"'use strict';

function ApiController($scope, $http, $location) {
  delete $http.defaults.headers.common['X-Requested-With']

  $scope.get = function(path){
    $http.get(path).success(function(data) {
      $scope.collection = data.collection;
      $scope.raw = JSON.stringify(data, undefined, 2)

      $location.path(path)
    })
  }

  $scope.$watch(function() {
    return $location.path()
  }, function(path) {
    $scope.get(path)
  });

  $scope.get('/api')
}

ApiController.$inject = ['$scope', '$http', '$location'];
;FI"dependency_digest;F"%52085dee73da1a4c6002563f5c81f2edI"required_paths;F[I"„/Users/weilu/workspace/collection-json-browser/app/assets/javascripts/collection_json_browser/angular/controllers/api_conntroller.js;TI"dependency_paths;F[{I"	path;FI"„/Users/weilu/workspace/collection-json-browser/app/assets/javascripts/collection_json_browser/angular/controllers/api_conntroller.js;TI"
mtime;FI"2013-06-30T01:15:40+08:00;FI"digest;F"%c1f238bcb5ca884bb2d36e475ccb402dI"
_version;F"%6776f581a4329e299531e1d52aa59832

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
collection-json-browser-0.0.11 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.10 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.9 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.8 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.7 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.6 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.5 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.4 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.3 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.2 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37
collection-json-browser-0.0.1 test/dummy/tmp/cache/assets/D18/FE0/sprockets%2F816d68b6feb37b103be618798b5e0b37