How to consume Web API 2 ( $http post) method in Angular js
<p>we can't able to consume web api2 method in angular js </p>

<pre><code>module.exports = function ($http, utils) {
var self = this;
self.login = function (credentials) {
    var config = {
        headers: {
            //'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;'
            'Content-Type': 'application/json'
        }
    };

    return $http.post(utils.apiUrl('admin/login'), credentials, config); 

     };
</code></pre>

<p>};</p>