Load the AngularJS Resource library asynchronously as a component.