Task #44 - Create ApiService and ApiResponse classes for backend communication
This commit is contained in:
@@ -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: '',
|
||||
|
||||
@@ -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,
|
||||
) {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user