title: Angularjs 1.x and Typescript and post value to server
body: <p>I am trying to post header values to the server but values not embedded in <strong>request header</strong> thats why its give me wrong answer. I know, I am doing something wrong but I can't figure out it. Below is my code.</p>
  
  <pre><code> checkMobileNo (mob: any): ng.IPromise&lt;ng.IHttpPromiseCallbackArg&lt;any&gt;&gt;{
    var config: ng.IRequestShortcutConfig = {
      headers: {
        MobileNo : mob,
        DeviceFlag : 'WebOS'
      }
    };
    return this.$http.post("http://abcd.com/api/DemoWebAPI/IsValidMobileNo", config)
  }
  </code></pre>
  
  <p>I already add reference path into that code. </p>