flosight-api/public/js/controllers/transactions.js

15 lines
396 B
JavaScript

'use strict';
angular.module('mystery.transactions').controller('transactionsController', ['$scope', '$routeParams', '$location', 'Global', 'Transaction', function ($scope, $routeParams, $location, Global, Transaction) {
$scope.global = Global;
$scope.findOne = function() {
Transaction.get({
txId: $routeParams.txId
}, function(tx) {
$scope.tx = tx;
});
};
}]);