title: How to show input data in alert window by button click using AngularJS?
body: <p>This is the code of the WebForm, When I debug the page and insert a break point at the   <code>$scope.ShowAlert = function(){</code> line, the browser doesn't reach the inner code.</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
  &lt;div class="container"&gt;
  
      &lt;div class="row" ng-app="myApp" ng-controller="MyController"&gt;
  
          &lt;input type="text" ng-model="FName" /&gt;
          &lt;input type="text" ng-model="Lname" /&gt;
  
          &lt;input type="button" value="Show Alert Message" ng-clicl="ShowAlert()" /&gt;
  
      &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;/form&gt;
  
  
  &lt;script type="text/javascript"&gt;
      var app = angular.module('myApp', [])
      app.controller('MyController', function ($scope, $window){
          $scope.ShowAlert = function(){
              $window.alert("Hello" + $scope.Fname + " " + $scope.Lname);
          }
  
      });
  
  
  &lt;/script&gt;
  </code></pre>