How to Create Reusable Components in Angular

preview_player
Показать описание
The video shows a concept of creating and reusing shared components in angular.
The content is for the learning purposes and can be expanded as per your needs.

Рекомендации по теме
Комментарии
Автор

As a part of shared components, I also recommend Custom Pipes in Angular.
Thanks for watching the videos, I hope they are helpful for all of you!

AdnanHalilovicDev
Автор

The way you zoom in the code and explaining, that makes me to watch this video on mobile also. Keep it up, not everyone does this.

allthenew
Автор

hey this is not working for me. i followed all the setps, but screen is blank. What should i put in app html ?

noob_player_in_the_field
Автор

Thanks for sharing this video. Will you please share the code on Github or show me how multiple modules work together. Just needed help. Thank you.

TedoHamTole
Автор

A doubt,
If this component is used in just a few places, not all, of the application, why put it in the shared module and have it be imported even if it's not used in other modules?
Shouldn't the shared module only have things that are actually shared across an entire application? So avoiding having a gigantic shared module in the future?

thamiresgarcia
Автор

Pozdrav Adnan,
Da li je ovo ok način da se uradi routing sa istim folder strukturom
U app-routing modulu:

const routes: Routes = [
{
path: ' ',
loadChildren: () => => m.PublicModule)
},
];

Onda u public routing :
const routes: Routes = [
{
path: ' ',
component: PublicComponent,

}
];
Ovako uspijem da ocitam public komponentu i prikazuje mi navbar komponentu
Ali ako zelim ocitati home page na public route da li cu koristit kao children ovako:
const routes: Routes = [
{
path: ' ',
component: PublicComponent,
children: [
{path: ' ', component: HomeComponent}
]
}
];


I hvala ti sto snimas nisam nasao puno yt kanala koje rade sa Angularom

amarimsirovic
Автор

you didn't show how to configure the routes. If possible, could you show us

paulomesquita
Автор

when you are creating a tutorial, try to create from scratch so that the user can follow what you did. Its easy to get lost in the way you created this videos

bijeshbalakrishnan