angularjs - mobile + ionic
js - escopo / promises