2016-09-26 35 views

回答

0

要开始,尝试从文档$http

样品

var req = { 
method: 'POST', 
url: 'http://example.com', 
headers: { 
    'Content-Type': undefined 
}, 
data: { test: 'test' } 
} 

$http(req).then(function(){ /* success */}, function(){ /* error */}); 

的是,试图寻找类似angular authentication example