When I use ion-select directive as a shared component in template of the main component, it will not be shown on the main component’s template. It’ll show as blank on the screen. But other directives like ion-button will be shown well normally on the screen. I think it a bug in Ionic 3. Am I right?
[home.html]
<ion-list>
<ion-item>
<ion-label>
Gender
</ion-label>
<select-test></select-test>
</ion-item>
</ion-list>
[home.module.ts]
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { ComponentsModule } from '../../components/components.module';
import { HomePage } from './home';
@NgModule({
declarations: [
HomePage
],
imports: [
IonicPageModule.forChild(HomePage),
ComponentsModule
],
})
export class HomePageModule {}
[select-test.html]
<ion-select>
<ion-option value="f">Female</ion-option>
<ion-option value="m">Male</ion-option>
</ion-select>
[component.module.ts]
import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { SelectTestComponent } from './select-test/select-test';
@NgModule({
declarations: [
SelectTestComponent
],
imports: [
IonicModule
],
exports: [
SelectTestComponent
]
})
export class ComponentsModule {}
[dependencies]
“@angular/animations”: “5.2.9”,
“@angular/common”: “5.2.9”,
“@angular/compiler”: “5.2.9”,
“@angular/compiler-cli”: “5.2.9”,
“@angular/core”: “5.2.9”,
“@angular/forms”: “5.2.9”,
“@angular/http”: “5.2.9”,
“@angular/platform-browser”: “5.2.9”,
“@angular/platform-browser-dynamic”: “5.2.9”,
“@ionic-native/core”: “4.6.0”,
“ionic-angular”: “3.9.2”,
“@ionic/app-scripts”: “3.1.8”,