File plugin - No provider for File!

Put the provider in the @component declaration:


@Component({
  selector: 'xxx',
  templateUrl: 'xxx',
  providers: [File]
})
1 Like