title: OnClick event in typescript
body: <p>my onclick event is not working in angular 2 application. Below is my code:</p>
  
  <p>HTML- (home.component.html): My complete 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;title&gt;Iroz-V3 - Sutherland Global Services&lt;/title&gt;
      &lt;link href="../../Content/style.css" rel="stylesheet" /&gt;
      &lt;script src="../../Scripts/jquery.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body class="login_bg"&gt;
      &lt;div id="wrapper"&gt;
          &lt;div id="mask"&gt;
              &lt;div id="item1" class="item"&gt;
                  &lt;div class="program-wrap"&gt;
                      &lt;div class="log_wrap"&gt;
                          &lt;div class="log_img"&gt;&lt;/div&gt;
                          &lt;ul class="log_list"&gt;
                              &lt;li&gt;
                                  USER ID&lt;br&gt;
                                  &lt;input class="log_input" id="NtLogin" placeholder="NT Login ID" type="text"&gt;
                              &lt;/li&gt;
                              &lt;li&gt;
                                  PASSWORD&lt;br&gt;
                                  &lt;input class="log_input" placeholder="*******" type="password"&gt;
                              &lt;/li&gt;
                              &lt;li&gt;
                                  &lt;input type="button" class="reset_but" value="Reset" /&gt;
                                  &lt;a class="india panel"&gt;
                                      &lt;input type="button" class="log_but" value="Login" (Click)="login_btnClick()" /&gt;
                                  &lt;/a&gt;
                              &lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>TS-(home.component.ts): My complete TS File</p>
  
  <pre><code>    import { Component, OnInit} from "@angular/core";
  @Component({
      template: `app/Components/home.component.html`
  })
  
  export class HomeComponent implements OnInit{
      ngOnInit() { }
      public login_btnClick() {
          console.log("function called");
          alert("login");
      }
  }
  </code></pre>
  
  <p>It's not even calling the function and not showing any error in console. </p>