Using uibModel

servicenow service-portal

Enable AI Animation

What is the post about?

What things would help with writing the post

c.openModal = function(action) {
        c.modalInstance = $uibModal.open({
            templateUrl: 'ticket-modal.html',
            controllerAs: 'modalC',
            scope: $scope,
            controller: function() {
                var modalC = this;
                modalC.modalInstance = c.modalInstance;
                modalC.action = action;
                modalC.messages = c.getMessages(action);
                modalC.data = c.data;
                modalC.record = c.data.recordId;
                modalC.action_reason = '';
                //modalC.fnSubmit = c.submitModal(action,modalC.record,modalC.action_reason);
            }
        });
    }

tahnk t1mb0b


View this page on GitHub.