angular/angular.js — pull request #2606 by robinboehm (2013-05-08 01:10:27+00:00)
Title: feat(ngMobile): add ngSensor services to detect e.g. shake events

Add services for sensor events used by mobile devices.

Listener-Services for following services are created:
* Orientation
* Motion
* Humidity
* Light
* Noise
* Pressure
* Proximity
* Temperature

Based on https://dvcs.w3.org/hg/dap/raw-file/tip/sensor-api/Overview.html#datatypes

Implement shake-direktive as example...

```html

Test

```
Could be used like ngClick and other EventDirectives.

Could be used for e.g.
* new random 9gag image
* change radio station
* ...

This is just a first proposal, there are still many open tasks:
* tests
* multiple device tests
* doc

But first I want to discuss this feature.
Ive test it with an iOS6 Device and worked fine.

feedback & support are welcome :)