Task #44 - Create ApiService and ApiResponse classes for backend communication

This commit is contained in:
garrettmills
2020-02-07 22:19:35 -06:00
parent 944185d829
commit f3845b76b6
7 changed files with 92 additions and 3 deletions

View File

@@ -5,12 +5,14 @@ import { IonicModule } from '@ionic/angular';
import { RouterModule } from '@angular/router';
import { HomePage } from './home.page';
import {HttpClientModule} from '@angular/common/http';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
HttpClientModule,
RouterModule.forChild([
{
path: '',

View File

@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import {ApiService} from '../service/api.service';
@Component({
selector: 'app-home',
@@ -7,6 +8,8 @@ import { Component } from '@angular/core';
})
export class HomePage {
constructor() {}
constructor(
protected api: ApiService,
) {}
}