包在
```
$rootScope.$apply(function() {
    defer.resolve(data);
});
```