Building Angular Library: A Comprehensive Tutorial for Creating Reusable Components

  Рет қаралды 14,285

Monsterlessons Academy

Monsterlessons Academy

Күн бұрын

Пікірлер: 29
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
WATCH NEXT: Angular Unit Testing Course - All That You Need to Know About Testing - kzbin.info/www/bejne/mKecq5KLm7ikna8si=WVzOWtdQUZWEbqsz
@chrisb3902
@chrisb3902 Жыл бұрын
I appreciate all your content!
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Happy to hear that!
@titokris5162
@titokris5162 Жыл бұрын
Thanks a lot Monsterlessons Academy. Great contents !!!
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Glad you like it!
@rembautimes8808
@rembautimes8808 7 ай бұрын
If I do a search on a topic on KZbin and I find a hit on Monstelessons, that will be the first video I watch. The content development is superb. Thanks so much for helping us all out here.
@valikonen
@valikonen Жыл бұрын
Great idea. Please make a payed course with monorepo, libs, multiple projects, etc.
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Thank you for the idea. I will add it to the list
@digitaldaridesatv1545
@digitaldaridesatv1545 Жыл бұрын
Thank you so much! In angular project, we can update a package like: ng update @angular/core How to update package in a library?
@karthikeyan878
@karthikeyan878 Жыл бұрын
Thank you, very useful content !!
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Glad you like it!
@WisconsinCorruption
@WisconsinCorruption Жыл бұрын
What are your thoughts on NX?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
It is good. I have a video about it. kzbin.info/www/bejne/o2KxhX6YfdyBgM0
@zertyfield
@zertyfield Жыл бұрын
Perfect timing! I wanna do something like this soon. I do however have a question. I have a project with a core, feature(s) and a shared module. Every feature imports the shared module. I'm going to move all the components, directives etc from the shared module into the angular library so I can be used in multiple projects. Do I now put the Library module inside the shared module (sort of becomes wrapped) or do I directly use the library module inside the features? Because the shared module will be pretty empty and useless after moving everything into the lib module. Any suggestions or tips on how to approach this?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Keep it simple. You don't need shared in lib if you don't share anything.
@marcolmos9079
@marcolmos9079 6 ай бұрын
hi, is there any way to use global css variables through all the components of the library in order to create different themes?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 6 ай бұрын
sure. css variables kind of ignore angular rules. so you provide variable in parent and it will work
@PraveenJoshua23
@PraveenJoshua23 8 ай бұрын
Seems like modules are no longer there when libraries are installed now and all components are standalone by default. Do we have to import each component in the public-api?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 8 ай бұрын
Just export components
@dg-cg5gi
@dg-cg5gi Жыл бұрын
But how does this work with multiple components though? I'm trying to have a library where I can have like 30-40 custom components if necessary. This only allows for one component because we only have the one file that was generated in our `lib` folder?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
export * from './lib/mla-users.component'; export * from './lib/mla-foo.component'; export * from './lib/mla-bar.component';
@dhanilaev1739
@dhanilaev1739 Жыл бұрын
Getting NG023 while consuming library locally
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
No idea, sorry
@arozendojr
@arozendojr 10 ай бұрын
Have you already achieved 100% coverage using Library?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 10 ай бұрын
100% tests coverage is not needed. You need enough so your app doesn't break.
@olehandershevchuk3491
@olehandershevchuk3491 Жыл бұрын
Для учбових відео краще використовуй Visual Code в дефолтному вигляді, бо в цьому редакторі що в тебе погано сприймається файлова структура, і в нумерації строк кода теж погано орієнтуватись... Це прям очевидно...
@IamAsphalt
@IamAsphalt Жыл бұрын
there's nothing new compared to the other tutorials there's no info about adding dependencies, handling multiple style files(especially from dependencies), handling config injection etc
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
I never promised to deliver what you wrote down. It is a beginners guide.
@clockwise9179
@clockwise9179 Жыл бұрын
his content is really good, however his accent is not really easy to listen to
Angular 19 Features: A Game-Changing Evolution
10:19
Monsterlessons Academy
Рет қаралды 5 М.
Top 5 Angular Mistakes - You Must Know Them
10:32
Monsterlessons Academy
Рет қаралды 60 М.
Mastering NX Angular Monorepo: Simplify Development and Boost Productivity
11:46
Monsterlessons Academy
Рет қаралды 21 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,5 МЛН
Angular Menu: A Step-by-Step Tutorial
21:23
Monsterlessons Academy
Рет қаралды 9 М.
Change Detection in Angular - You Project Is 20x Slower!
15:16
Monsterlessons Academy
Рет қаралды 73 М.
Angular library tutorial
15:01
BlackBox Tech
Рет қаралды 63 М.
Angular Injection Token - When to Use It?
6:19
Monsterlessons Academy
Рет қаралды 13 М.
Create Your First Angular Library - Nir Kaufman
37:19
AngularNYC
Рет қаралды 38 М.
Angular Routing Essentials: All You Need to Know in One Video!
21:30
Monsterlessons Academy
Рет қаралды 6 М.