app.module.tsで宣言されているIon 2命令のアプリケーション。Ionic 3の指示書
しかし、Ionic 3(遅延ロード)では、この指令は機能しません。 私は、このような、部品のモジュールに指令をインポートしよう:
...
import { TabindexDirective } from '../../../app/tabindex.directive';
@NgModule({
declarations: [
...
TabindexDirective,
],
imports: [
...
],
exports: [
...
],
})
export class SignupModule {}
このコードは正常に動作しますが、私は別のコンポーネントのモジュールでこのディレクティブをインポートし、その後、私はエラーを持っている:
それを修正する方法Type GoComponent is part of the declarations of 2 modules: SignupModule and AddPageModule! Please consider moving GoComponent to a higher module that imports
Ionic 3で指令を使用しますか?
可能な重複2モジュールのエラー](https://stackoverflow.com/questions/46840108/ionic-3-ios-build-prod-not-working-declarations-of-2-modules-error) –