%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/public/scripts/controllers/modals/
Upload File :
Create Path :
Current File : /var/www/html/news/public/scripts/controllers/modals/socialUrl.controller.js

'use strict';

angular.module('controllers').controller('modalSocialUrlController', function ($scope, social, $uibModalInstance, resource, notification) {

    $scope.social = angular.copy(social);

    $scope.save = function () {
        resource.forResource('socials').update($scope.social.id, $scope.social).then(function (res) {
            notification.success('Social URL updated successfully');
            $uibModalInstance.close(res);
        }, function (error) {
            notification.error(error);
        });
    };

    $scope.cancel = function () {
        $uibModalInstance.close();
    };

});

Zerion Mini Shell 1.0