title: Unable to Open then Dialog using Angular ngDialog
body: <p>I am new to angularjs. I am unable to open the dialog box using <code>ngDialog</code>.<br>
  This is what my Function is in controller.js</p>
  
  <pre><code>(function () {
    var PersonController = function ($scope, $http, ngDialog ) {
      $http.get("http://localhost:49889/api/Persons").success(function (res) {
        $scope.person = res;
        $scope.Edit = function () {
          debugger;
          ngDialog.open({
            template: '&lt;div&gt;&lt;h1&gt;I am Ng Dialog&lt;/h1&gt;&lt;/div&gt;',
            plain: true,
            scope: $scope.person
          });
        }
      });
    }
    angular.module("MyApp").controller('PersonController', ["$scope", "$http" , PersonController]);
  }());
  </code></pre>
  
  <p>I also added the dependency in main app.</p>