Replaced $timeout by $interval to allow tests with protractor. See the default issue here : https://github.com/angular/protractor/issues/169