olov / ng-annotate

Add, remove and rebuild AngularJS dependency injection annotations
MIT License
2.03k stars 152 forks source link

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

Closed hm6293 closed 7 years ago

hm6293 commented 8 years ago

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 commented 7 years ago

245