title: How to get pop-up with ngDialog?
body: <p>I couldn't get this <strong>ngDialog</strong> module working with <strong>AngularJs</strong> so looking for some hint where I went wrong.</p>
  
  <p>My Json file named <em>abc.json</em></p>
  
  <pre><code>[{"id":
    [
        {
            "value":"text_id",
            "desc":"Text id"
        },
        {
            "value":"group_id",
            "desc":"Group id"
        },
    ]
  }]
  </code></pre>
  
  <p>Angular Controller</p>
  
  <pre><code>'use strict';
  
  angular.module('mine.controllers', [])
          .controller('myController', ['$scope', '$sce', '$http',  function($scope, $sce, $http, ngDialog) {
              $http.get('abc.json')
              .success(function(data) {
                $scope.ids = data;
              });
              $scope.openPlain = function (message) {
                ngDialog.open(message);
              };
            }]);
  </code></pre>
  
  <p>And finally the HTML</p>
  
  <pre><code>&lt;body ng-app="mine"&gt;
      &lt;table ng-controller="myController"&gt;
          &lt;tr ng-repeat="datas in ids"&gt;
              &lt;td&gt;
                  &lt;span ng-repeat="iden in datas.id"&gt;
                      &lt;a href="" ng-click='openPlain("{{ iden.desc }}")'&gt;{{ iden.value }}&lt;/a&gt;, 
                  &lt;/span&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt; 
      &lt;script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js"&gt;&lt;/script&gt;
      &lt;script src="//cdnjs.cloudflare.com/ajax/libs/ng-dialog/0.2.3/js/ngDialog.min.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Here is the <a href="http://jsfiddle.net/ys01yoLk/" rel="nofollow">JsFiddle</a>, but I couldn't make it work with JsFiddle either, some different error. </p>
  
  <p>In my local machine I don't get any error when the DOM loads and the <code>value</code> are displayed correctly from the JSON file. However when I click the link, I get this error:</p>
  
  <pre><code>TypeError: Cannot call method 'open' of undefined
  </code></pre>
  
  <p>So I am guessing the <strong>ngDialog</strong> is not loaded or something else.</p>