title: Why ng-click not working in the example
body: <p>I can see that on clicking the control not going to controller by chrome debugger. I have simple code in view and controller. Also, I am not getting any error. Any help would be appreciated. </p>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;div class="logInBtn"&gt;
     &lt;a data-ng-click="submitLoginDetails()"&gt;
       &lt;button type="button" class="btn btn-primary"&gt;Log In&lt;/button&gt;
     &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Controller</strong> </p>
  
  <pre><code>app.controller('loginPageController',function($scope, $http, assimilationSurveyService){
  
      $scope.submitLoginDetails = function(){
  
          $scope.loginData = {
            "password": "pass1234",
            "userId": "userabc"
          };
  
          assimilationSurveyService.sendLoginData($scope.loginData)
              .success(function(data) {
                  alert("Hi!");
              });
      }
  
  });
  </code></pre>
  
  <p><strong>Router</strong> </p>
  
  <pre><code>app.config(['$routeProvider',function($routeProvider){
      $routeProvider
  
      .when('/loginPage', {title:'Feedback',templateUrl:'loginPage.html',controller:'loginPageController'})
  
      .otherwise({title:'Feedback', templateUrl:'loginPage.html'});
  }])
  </code></pre>
  
  <p><strong>Service</strong> </p>
  
  <pre><code>app.service('assimilationSurveyService',function(){
  
      return{
  
              // For Getting expense list
              sendLoginData: function(loginData) {
                  var sendLoginData = {
                      url: 'http://172.16.34.245:8080/Survey/user/login',
                      method: 'POST',
                      data: loginData,
                      headers: {
                          'Content-Type': 'application/json'
                      }
                  };
  
                  return $http(sendLoginData);
              },
  
  
      }
  
  });
  </code></pre>
  
  <p>The pointer is not coming to controller when login button is clicked. So just let me know why on ng-click I am not getting the program to come to the controller part. </p>
  
  <blockquote>
    <p>Even when I remove anchor and set the ng-click in button, I am not being redirected to controller code function. Strange issue! </p>
  </blockquote>