Sha256: 68e62603e34ef858f7671bf9a2fe753164fdde6a00bd392c6cb2cc7b2a5eff28
Contents?: true
Size: 1.59 KB
Versions: 11
Compression:
Stored size: 1.59 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1372527233.0830421:@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