Sha256: e83b6f666c301c52f3d5b32b7d3a4e00cb11867929902d11587f7ffaacb9f12f
Contents?: true
Size: 593 Bytes
Versions: 31
Compression:
Stored size: 593 Bytes
Contents
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. angular.module('bjond-api',[]) .controller('registrationsController', ['$scope', '$http', function ($scope, $http) { $scope.result = null; $scope.register = function (id) { $http.get('/bjond-app/services/register?id=' + id).then(function () { alert('Registration Updated with Bjond!'); }).catch(function (response) { alert('Failed to register. Please check logs.'); console.log(response.data); }); }; }]);
Version data entries
31 entries across 31 versions & 1 rubygems