Hi all, i have proplem on IE when i use window.location.href to redirect 
URL , it happens infinite loop request in IE, not happens in Firefox, Chrome

my service following :

NotificationService.prototype.openObjectDetail = function(actId, callback) {
var self = this;
    var url = "activity/redirect/" + actId.toString();
    self.$http.get(url).success(function(data) {
    if (data) {
    for (var index in self.items) {
        console.log('Index: ' + index);
    if (self.items[index].id == actId && self.items[index].status == 0) {
    self.items[index].status = 1;
    if (self.nUnread > 0) {
    self.setNUnread(self.nUnread - 1);
    }
    break;
    }
        }
      self.$window.location.href = data; // data is new URL
    }
    });
};

Any ideas help me , Thank so much!

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to