Skip to content

Instantly share code, notes, and snippets.

@bartoszgajda55
Created February 12, 2018 22:40
Show Gist options
  • Save bartoszgajda55/06cd541ef796cedd02d6c89aa0562bda to your computer and use it in GitHub Desktop.
Save bartoszgajda55/06cd541ef796cedd02d6c89aa0562bda to your computer and use it in GitHub Desktop.
How to use Ionic directives in custom component
import { NgModule } from '@angular/core';
import { ActionSheetComponent } from './action-sheet/action-sheet';
import {IonicModule} from "ionic-angular";
@NgModule({
declarations: [ActionSheetComponent],
imports: [
// Add this module and every component that need access to Ionic directives
IonicModule.forRoot(ActionSheetComponent)
],
exports: [ActionSheetComponent]
})
export class ComponentsModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment