title: ngDialog won't work with ng-click
body: <p>I am using ngDialog, <a href="https://github.com/likeastore/ngDialog#api" rel="nofollow">https://github.com/likeastore/ngDialog#api</a></p>
  
  <p>this is in my controller: </p>
  
  <pre><code>$scope.clickToOpen= function(){     
               ngDialog.open({
                      template:
                     '&lt;button ng-click=savePost()&gt; + Save&lt;/button&gt;'  ,
                      plain: true,
                      className: 'ngdialog-theme-default'
                  })
      }
  </code></pre>
  
  <p>and HTML is </p>
  
  <pre><code> &lt;button class="ion-android-more-horizontal" ng-click="clickToOpen()"&gt;&lt;/button&gt;
  </code></pre>
  
  <p>the words 'save' is supposed to call the savePost function but it's not working </p>