using angular.element & call function when device is ready

using angular.element to bind event and call function when device is already ready