خرید بک لینک

Vote count: 0

My code is like this,

app.controller('myController', function($scope, MyService, ...) {

    MyService.getInfoFromUrl('MyUrl').then(function(result) {
        console.log("Successfully get info from URL ...");
    }, function(error) {
        console.log("Server error ...");
        console.log(error);
    });
});

So when i test it with error path, i see Server error ... Undefined

What's the correct way to get error info please ?

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 3 ارديبهشت 1395 ساعت: 22:41

صفحه بندی