For wait purposes I use such kind of wait function:
browser.wait(function()
{
return browser.isElementPresent(by.repeater('recentName in recentNames').row(0));
}, 10000);
How I can wait for element to disappear from the page? I have project which have lots of modal windows and because elements are always presented on the page I have difficulties and test failures from time to time, because I used wrong elements to wait. For example I have such element which disappear when modal window closes after clicking Enter:
<div class="modal-backdrop in"></div>