angular/protractor — pull request #61 by colinmutter (2013-08-28 14:18:35+00:00)
Title: Support for manually bootstrapped apps on a target element

When using an angular app that exists on a descendant element of document.body, the protractor.waitForAngular function fails because it's hard coded to extract angular's injector from document.body.

```
angular.element(document.body).injector().get('$browser')
```
Fails with: *javascript error: Cannot call method 'get' of undefined*

I added a config option, rootElement, which uses an optional selector to locate the angular app in these situations.

```
rootElement: 'div#my-app-here'
```