Sha256: eed75af9e04ca11c8261a1515bebfc94868b276f0a1396dcb9b27fa0cb839206

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

app.controller('ApidocController', [ '$scope', '$http', function($scope, $http){
  $scope.my_data = [];

  $scope.showApi = function(branch){
    $scope.currentApi = branch.values;
  }

  $scope.setData = function(url){
    $scope.dataURL = url;
    $http.get($scope.dataURL).then( function(res){
      $scope.my_data = res.data;
    });
  }

}])

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lina-0.0.4 app/assets/javascripts/lina/apidoc_controller.js
lina-0.0.3 app/assets/javascripts/lina/apidoc_controller.js
lina-0.0.2 app/assets/javascripts/lina/apidoc_controller.js