Services: create and move shows-api service
This commit is contained in:
parent
46b267d672
commit
0a6fda1512
3 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import {Component, inject} from '@angular/core';
|
import {Component, inject} from '@angular/core';
|
||||||
import {ShowsApiService} from '../../shows/shows-api.service';
|
import {ShowsApiService} from '../../services/shows/shows-api.service';
|
||||||
import {Show, ShowsApiResponse} from '../../shows/shows-api';
|
import {Show, ShowsApiResponse} from '../../shows-api';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-shows',
|
selector: 'app-shows',
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {inject, Injectable} from '@angular/core';
|
import {inject, Injectable} from '@angular/core';
|
||||||
import {HttpClient} from '@angular/common/http';
|
import {HttpClient} from '@angular/common/http';
|
||||||
import {Observable} from 'rxjs';
|
import {Observable} from 'rxjs';
|
||||||
import {ShowsApiResponse} from './shows-api';
|
import {ShowsApiResponse} from '../../shows-api';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue