NetanelBasal
1/3/2018 - 8:44 PM

api1.service.ts

@Injectable()
export class API {
  ...
  
  constructor(@Inject(END_POINTS) private _endPoints) {
    this.endPoints = _endPoints.reduce((acc, current) => {
      return {
        …current,
        …acc
      };
    }, {});
  }

}