title: redirect to page on ng-click
body: <p>im trying to create a simple redirect using angular <code>ng-click</code>. But when i click on the button nothing happens and no errors are thrown.</p>
  
  <p>Below is my code</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div ng-app='RedApp' ng-controller='CountCtrl'&gt;
    &lt;button ng-click='clickclick(1)'&gt;
      Click to redirect
    &lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>var app = angular.module('RedApp',[]);
  
    app.controller('CountCtrl',function($scope){
      $scope.clickclick = function ( cid ) {
      $location.path('/page/'+cid);
  };
  });
  </code></pre>
  
  <p>i just started to learn angular :) can someone tell me what am i doing wrong here?</p>
  
  <p>any help will be appreciated.</p>