Wrapped  method calls in scope. to allow compatibility with Angular 1.1+