Cześć. Chciałbym dodać do jednego kompontu drugi ale nic się nie dzieje tutaj jest kod może bardziej rozjaśni :
home.module.ts:
import { NgModule } from '@angular/core';
import { HomeRoutingModule, routedComponents } from './home-routing.module';
import { HomeComponent } from './components/home.component';
import { MaterialModule } from 'src/app/material.module';
import { CommonModule } from '@angular/common';
import { CategoryPopularComponent } from './containers/category-popular/category-popular.component';
import { ReactiveFormsModule } from '@angular/forms';
@NgModule({
declarations: [CategoryPopularComponent, HomeComponent, routedComponents],
imports: [HomeRoutingModule, MaterialModule, CommonModule, ReactiveFormsModule],
exports: [],
providers: []
})
export class HomeModule {}
Komponent do którego chce umieścić inny komponent:
<div class="container">
<p>Najaktywniejsze kategorię</p>
<app-category-popular class="popular"></app-category-popular>
</div>
a komponent który chciałbym umieścić jest pusty zawiera tylko tag