Sha256: 47bd6f681e489543544696352496a44fde961118c3718cc07a01bbb9b41516e9

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

'use strict';

angular.module('linkedin2cv App')
    .controller('MainCtrl', ['$scope', '$http', 'Linkedin2CV', function ($scope, $http, Linkedin2CV) {

        // Default website
        $scope.message = 'Sockets will replace me - enter stuff above to find out!'

        /**
         * Generate a Linkedin2CV
         */
        $scope.generateLinkedin2CV = function (ping) {

            var data = Linkedin2CV.getResponse({'message': ping})
            data.then(function (result) {
                console.log(result)

                $scope.message = 'API said: ' + result.message;
            });
        }
    }]);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
linkedin2cv-0.0.1 public/app/scripts/controllers/main.js