%PDF- %PDF-
Mini Shell

Mini Shell

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

'use strict';

angular.module('controllers').controller('notificationController', function ($scope, notificationEntity, resource, notification, autoCompleteService) {

    $scope.notificationEntity = notificationEntity;

    $scope.save = function () {
        resource.forResource('notifications').update($scope.notificationEntity.id, $scope.notificationEntity).then(function (res) {
            notification.success('Notification updated successfully');
            $scope.back();
        }, function (error) {
            notification.error(error)
        });
    };

    $scope.back = function () {
        history.back();
    };

});

Zerion Mini Shell 1.0