当我尝试在我的服务构造函数中使用来自 angular2-jwt 的 AuthHttp 时,我正在使用 angular v6,页面不会执行任何请求或呈现。我已将 AUTH_PROVIDERS 添加到提供程序,但同时我没有错误。
import { AuthHttp } from 'angular2-jwt';
@Injectable()
export class VehicleService {
private readonly vehiclesEndPoint = "/api/vehicle/";
constructor(private http: HttpClient, private authHttp: AuthHttp) { }
任何想法 ?