updating angular resource and injector definitions