angular.module('MetronicApp').controller('PhoneListCtrl',function PhoneListCtrl($scope,$http) { $http({ method: 'POST',url: "http://192.168.0.1:8003/api/Account/Authenticate",data: { TenancyName: "Default",UsernameOrEmailAddress: "admin",Password: "123qwe2" },headers: { "Content-Type": "application/json" } }) .success(function(data) { console.log(data); }).error(function(data) { console.log(data); }); });