Created
February 12, 2018 22:40
-
-
Save bartoszgajda55/06cd541ef796cedd02d6c89aa0562bda to your computer and use it in GitHub Desktop.
How to use Ionic directives in custom component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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