Angular2 RC6 HttpModule manual injection
问题 I'm migrating a project from angular2 RC4 to RC6 and I have a custom Form Validator which needs Http . Before the migration I used the ReflectiveInjector with the HTTP_PROVIDERS , but with RC6 this is not possible anymore as HTTP_PROVIDERS is deprecated, respectively not present anymore. This is the static method in the Validator: static checkVat(control: FormControl) { let checkVatUrl = "http://localhost:8080/checkvat"; let injector = ReflectiveInjector.resolveAndCreate([HTTP_PROVIDERS]);