title: NgDialog is not working after deploying
body: <p>I am using NgDialog for showing a popup window which has some operations performed.  It works fine in local . But when deployed it does not . 
  But when I remove the controller it works fine everywhere . </p>
  
  <p>I am using ngDialog 1.0.1 , Angular js 1.5 and Typescript 2.1.4</p>
  
  <p>Appreciate your help .</p>
  
  <pre><code>showPinVerificationModal(email,name) { 
  const dlgConfig = { 
  template: require('./modal.tpl.html'), plain: true,
   className: 'ngdialog-theme-modalService ngdialog-theme-modalService-Width800', 
  controller: this.PinVerifcationModalCtrl, resolve: {
   email: function () { return email; }, name: function () { return name; }
   } };
  
   return this.ngDialog.openConfirm(dlgConfig); }
  
  
  
  private PinVerifcationModalCtrl($scope,email,name) { $scope.Email = email; $scope.Name = name; }
  </code></pre>