У меня есть модуль ниже, добавляет ng2-smart-table
компонент внутри моей HTML страницы так:угловой 2 компонент, который перекрывает все шаблоны
<div class="row">
<div class="col-md-6">
<ba-card title="Commandes" baCardClass="with-scroll">
<bar-table></bar-table>
</ba-card>
</div>
</div>
<div class="row">
TEST HERE
</div>
Вопрос заключается в том, что код TEST здесь будет перекрываться модулем, и У меня есть только мой бар-стол, который обычно отображается, но ничего ниже.
//app/pages/foo/detailFoo/detailFoo.module.ts
NgModule({
imports: [
CommonModule,
NgaModule,
Ng2SmartTableModule,
BarModule,
DetailFooRouting
],
declarations: [
DetailFoo
],
exports: [
DetailFoo
],
schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
})
export default class DetailFooModule {}
и компонентные
// приложение/страницы/Foo/detailFoo/detailFoo .component.ts
@Component({
selector: 'foo-detail',
template: require('./detailFoo.html'),
})
export class DetailFoo {
constructor() {
}
}
Звоню компонент штрих-таблицу, которая ссылается как то:
//app/pages/bar/bar.module.ts
@NgModule({
imports: [
CommonModule,
NgaModule,
Ng2SmartTableModule,
routing
],
declarations: [
BarTableComponent
],
exports: [BarTableComponent]
})
export class BarModule {}
// приложение/страницы/бар/barTable.component.ts
@Component({
selector: 'bar-table',
template: '<ng2-smart-table [settings]="settings" (deleteConfirm)="onDeleteConfirm($event)"></ng2-smart-table>'
})
export class BarTableComponent
кто-то знает, почему ТЕСТ ЗДЕСЬ разве отображается?