chore($rootScope): provide support to execute a function after the digest cycle is complete