import { NgModule, ModuleWithProviders } from '@angular/core';
import { HomePage } from './pages/home/home';
import { AdditionProvider } from './providers/addition/addition';
import { IonicModule } from 'ionic-angular';
import { UseFeatureComponent } from './components/use-feature/use-feature';

@NgModule({
    imports: [
        // Only if you use elements like ion-content, ion-xyz...
        IonicModule
    ],
    declarations: [
        // declare all components that your module uses
        HomePage,
        UseFeatureComponent
    ],
    exports: [
        // export the component(s) that you want others to be able to use
        HomePage,
        UseFeatureComponent
    ]
})
export class IonicAcademyModule {
    static forRoot(): ModuleWithProviders {
        return {
            ngModule: IonicAcademyModule,
            providers: [AdditionProvider]
        };
    }
}