Hello, I can't use the plugin,
I get the following error:
website.assets_frontend.js:1022 Error: Error: Can't resolve all parameters for RequestOptions: (?).(…)(anonymous function) @ website.assets_frontend.js:1022
. I have
the following code:
Can't resolve all parameters for RequestOptions: (?).(…)(anonymous function) @ website.assets_frontend.js:1022.
I have the following code:
import { Component } from '@angular/core';
import { Hero } from './hero';
import { HeroDetailComponent } from './hero-detail.component';
import { HeroService } from './hero.service';
import { OnInit } from '@angular/core';
import {OdooRPCService } from 'angular2-odoo-jsonrpc'
import { Http, ConnectionBackend, RequestOptions } from "@angular/http";
Hello, I can't use the plugin, I get the following error: website.assets_frontend.js:1022 Error: Error: Can't resolve all parameters for RequestOptions: (?).(…)(anonymous function) @ website.assets_frontend.js:1022 . I have the following code: Can't resolve all parameters for RequestOptions: (?).(…)(anonymous function) @ website.assets_frontend.js:1022. I have the following code:
import { Component } from '@angular/core'; import { Hero } from './hero'; import { HeroDetailComponent } from './hero-detail.component'; import { HeroService } from './hero.service'; import { OnInit } from '@angular/core'; import {OdooRPCService } from 'angular2-odoo-jsonrpc' import { Http, ConnectionBackend, RequestOptions } from "@angular/http";
@Component({ selector: 'my-app', template: `
{{title}}
`, providers: [ HeroService, OdooRPCService, Http, ConnectionBackend, RequestOptions ]
}) export class AppComponent implements OnInit { title = 'Tour of Heroes'; heroes : Hero[]; selectedHero: Hero; onSelect(hero: Hero): void { this.selectedHero = hero; }
}
}