ng-submit angular js not working in php
<p>In my below code only angular validation is working. When I click on login button, then no angular script works. Can some body help me? Where is my mistake?</p>

<p>HTML code:</p>

<pre><code>   &lt;!DOCTYPE html&gt;
    &lt;html&gt;
    &lt;head&gt; 
  &lt;meta charset="utf-8"&gt;
&lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
&lt;title&gt;Talkiedo&lt;/title&gt;
&lt;link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet"&gt;
&lt;link href="assets/css/bootstrapValidator.min.css" rel="stylesheet"&gt;
&lt;link href="assets/datatables/css/dataTables.bootstrap.css" rel="stylesheet"&gt;
&lt;link href="assets/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet"&gt;
 &lt;!-- Custom CSS --&gt;
&lt;link href="assets/css/style.css" rel="stylesheet"&gt;



&lt;script src="assets/bootstrap/js/angular.js"&gt;&lt;/script&gt;
&lt;script src="assets/bootstrap/js/angular-route.min.js"&gt;&lt;/script&gt;
&lt;script src="assets/bootstrap/js/angular-resource.min.js"&gt;&lt;/script&gt;
&lt;script src="assets/bootstrap/js/angular-messages.js"&gt;&lt;/script&gt;


  &lt;script src="loginController.js"&gt;&lt;/script&gt;

  &lt;link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css"&gt;
  &lt;!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --&gt;
   &lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&gt;
   &lt;!--[if lt IE 9]&gt;
  &lt;script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"&gt;&lt;/script&gt;
\\\
&lt;![endif]--&gt;


&lt;style&gt;
.form-group.required .control-label:after {
  content:"*";
  color:red;
 }
  &lt;/style&gt;
  &lt;/head&gt; 
  &lt;body style="background-color:#EEF2F5;" ng-app="loginApp" ng-controller="loginController"&gt;


&lt;div class="container-fluid"&gt;

        &lt;div class="row"&gt;

            &lt;div class="col-md-offset-4 col-md-4 well" style="padding-left:50px;padding-right:50px"&gt;
                    &lt;h1&gt;Login&lt;/h1&gt;
                   &lt;form class="form-horizontal" name="adminForm"  role="form"  ng-submit="submitLogin()" novalidate="novalidate"&gt;
                         &lt;div class="form-body"&gt;
                        &lt;div class="form-group required" ng-class="{'has-error': adminForm.admin_username.$touched &amp;&amp; adminForm.admin_username.$invalid }"&gt;
                           &lt;div class="input-group"&gt;
                              &lt;div class="input-group-addon"&gt;
                                &lt;span class="glyphicon glyphicon-th"&gt;&lt;/span&gt;
                              &lt;/div&gt;
                              &lt;input type="email" class="form-control" name="admin_username" id="admin_username" ng-model="admin.admin_username" required  style="padding-top: 0px;" placeholder="Enter Your Email Id"&gt;

                            &lt;/div&gt;
                             &lt;div class="help-block" ng-messages="adminForm.admin_username.$error" ng-if="adminForm.admin_username.$touched &amp;&amp; adminForm.admin_username.$invalid" &gt;
                                &lt;p ng-message="required"&gt;Your email is required.&lt;/p&gt;
                                &lt;/div&gt;
                        &lt;/div&gt;

                        &lt;div class="form-group required"  ng-class="{'has-error': adminForm.admin_password.$touched &amp;&amp; adminForm.admin_password.$invalid }"&gt;
                           &lt;div class="input-group"&gt;
                              &lt;div class="input-group-addon"&gt;
                                &lt;span class="glyphicon glyphicon-th"&gt;&lt;/span&gt;

                             &lt;/div&gt;
                              &lt;input type="password" class="form-control" name="admin_password" id="admin_password" ng-model="admin.admin_password" required style="padding-top: 0px;" placeholder="Enter Your Password"&gt;

                            &lt;/div&gt;
                            &lt;div class="help-block" ng-messages="adminForm.admin_password.$error" ng-if="adminForm.admin_password.$touched &amp;&amp; adminForm.admin_password.$invalid" &gt;
                                &lt;p ng-message="required"&gt;Your Password is required.&lt;/p&gt;
                                &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;span class="help-block" id="wrong_password" name="wrong_password"&gt;&lt;/span&gt;


                        &lt;div class="form-group"&gt;
                          &lt;div class="input-group"&gt;

                            &lt;div class=" col-sm-6"&gt;
                              &lt;button type="button" class="btn btn-default center-blocks btn-save" ng-disabled="adminForm.$invalid" id="btn-save"&gt;Login&lt;/button&gt;
                            &lt;/div&gt;
                            &lt;div class="col-sm-6"&gt;
                              &lt;button type="" class="btn btn-default btn-cancel center-block"&gt;Cancel&lt;/button&gt;
                            &lt;/div&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                   &lt;/form&gt;
            &lt;/div&gt;
        &lt;/div&gt;     
    &lt;/div&gt;
&lt;script src="assets/jquery/jquery-2.1.4.min.js"&gt;&lt;/script&gt;
&lt;script src="assets/bootstrap/js/bootstrap.min.js"&gt;&lt;/script&gt;
     &lt;script src="assets/js/bootstrapValidator.min.js"&gt;&lt;/script&gt;
       &lt;script src="assets/bootstrap-datepicker/js/bootstrap-datepicker.min.js"&gt;   &lt;/script&gt;
&lt;script src="assets/datatables/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
&lt;script src="assets/js/bootbox.min.js"&gt;&lt;/script&gt;
&lt;script src="assets/js/custome.js"&gt;&lt;/script&gt;


      &lt;/body&gt;
   &lt;/html&gt;
</code></pre>

<p>AngularJS code:</p>

<pre><code>// Defining angularjs application.
var loginApp = angular.module('loginApp', ['ngMessages']);
// Controller function and passing $http service and $scope var.
loginApp.controller('loginController', function($scope, $http) {
  // create a blank object to handle form data.
    $scope.admin = {};
  // calling our submit function.

    $scope.submitLogin = function() {
    // Posting data to php file
    alert('dasdas');
     if ($scope.adminForm.$valid) { 
    $http({
      method  : 'POST',
      url     : 'http://localhost/talk/admin/login',
      data    : $scope.admin, //forms user object
      headers : {'Content-Type': 'application/x-www-form-urlencoded'} 
     })
      .success(function(data) {
        if (data.errors) {
          // Showing errors.
         // $scope.errorName = data.errors.address1;
         // $scope.errorUserName = data.errors.address2;
         // $scope.errorEmail = data.errors.address13;
        } else {
          $scope.message = data.message;
        }
      });
    }else {
  alert("There are invalid fields");
    }
    };
       });
</code></pre>