title: Pass json string as a parameter into ng-click
body: <p>I want to pass JSON string into ng-click</p>
  
  <p>here is the JSON string:</p>
  
  <pre><code>{"id":0,"parentID":0,"SubMenuItems":[],"imageName":"Icon.png","moduleName":"No Menu"}
  </code></pre>
  
  <p><strong>HTML:</strong>  </p>
  
  <pre><code>     &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
    &lt;head&gt;
      &lt;script data-require="angular.js@*" data-semver="1.4.0-beta.4" src="https://code.angularjs.org/1.4.0-beta.4/angular.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href="style.css" /&gt;
      &lt;script src="script.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body ng-app="app" ng-controller="appCtrl"&gt;
      &lt;h1&gt;Hello Plunker!&lt;/h1&gt;
      &lt;button ng-click="go({
        "id": 0,
        "parentID": 0,
        "SubMenuItems": [],
        "imageName": "Icon.png",
        "moduleName": "No Menu"
      })"&gt;GOOOOOOOOOOOOOO!!!!!!!!!!&lt;/button&gt;
    &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>JS:</strong>
  // Code goes here</p>
  
  <pre><code>var app = angular.module('app', []);
  app.controller('appCtrl', ['$scope',
    function($scope) {
  
      $scope.go = function(parm) {
        alert('hi');
      };
    }
  ]);
  </code></pre>
  
  <p><strong><a href="http://plnkr.co/edit/QfCvWGWJXKPY51fz72nC?p=preview" rel="nofollow">PLUNKER</a></strong></p>