In app on Ionic 2 Directive declared in app.module.ts.
But in Ionic 3 (lazy load) this Directive not working. I try to import Directive in component module, such:
...
import { TabindexDirective } from '../../../app/tabindex.directive';
@NgModule({
declarations: [
...
TabindexDirective,
],
imports: [
...
],
exports: [
...
],
})
export class SignupModule {}
This code works fine, but then i Import this directive in another component module, i have error:
Type GoComponent is part of the declarations of 2 modules: SignupModule and AddPageModule! Please consider moving GoComponent to a higher module that imports
How to fix it and use Directives in Ionic 3?