Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation does not occur for controller or resolve definition inside ngDialog #250

Closed
hm6293 opened this issue Sep 20, 2016 · 1 comment

Comments

@hm6293
Copy link

hm6293 commented Sep 20, 2016

I am using this piece of code to open a modal, but on uglification of this code it gives me provider error because the annotation doesn't occur for the controller and resolve.

ngDialog.open({
      template: 'scripts/user-portal/directive/interview/calendar-and-interview-detail.html',
      plain: true,
      data: {
          operation: operation,
          event: event,
          isCalendarConnected : isCalendarConnected,
          isSettings : isSettings
       },
       resolve: {
             candidate: function(candidateForWardedProfileDetailService) {
                    if(candidateId)
                          return candidateForWardedProfileDetailService.getDetail(candidateId);
              },
              calendarSettings : function(){
                     if(isSettings && isCalendarConnected)
                          return self.getIntegratedCalendarDetails();
              }
        },
        controller: 'CalenderPopupCtrl',
        showClose: true,
        className: 'ngdialog-theme-default',
        preCloseCallback: function() {
                 return ConfirmOnExitService.preCloseCallbackFunction('scheduleInterviewForm', dialog);
        }
});
@olov
Copy link
Owner

olov commented Oct 1, 2016

#245

@olov olov closed this as completed Oct 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants