I want create a service for getting Github users from https://api.github.com/users…
I created a project from this course but I couldn’t get any result just get this:
I guess my problem is in app.module.ts and NgModule but i’m not sure:
import { NgModule } from '@angular/core';
import {IonicApp, IonicModule} from 'ionic-angular';
import {MyApp} from './app.component';
import { UsersPage } from '../pages/users/users';
import { ReposPage } from '../pages/repos/repos';
import { OrganisationPage } from '../pages/organisation/organisation';
import { GithubUsers } from '../providers/github-users';
@NgModule({
declarations: [
],
imports: [
IonicModule.forRoot(MyApp)
],
bootstrap: [
IonicApp
],
entryComponents: [
],
providers: [
GithubUsers
]
})
@NgModule({
declarations: [
MyApp,
UsersPage,
ReposPage,
OrganisationPage
],
imports: [
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
UsersPage,
ReposPage,
OrganisationPage
],
providers: []
})
export class AppModule {}
