Angular Library: Use A Library In a Mono-Repo and Different Workspaces

preview_player
Показать описание
In this video, you will see how to create an #angular #library and re-use it in a mono-repo.
You will learn how to use the library in the same workspace, or in a different one.

Useful commands:
- Create a library: ng generate application users
- Display in terminal the directory's tree view (in Linux): tree -d -L 2 -I 'node_modules|dist'

✨ Github Issue:

******************************************************
Let's connect
******************************************************

#angular #angularlibrary #library #angulartutorial #workspace #angularworkspace
Рекомендации по теме
Комментарии
Автор

This is really good content for angular. I hope that more people will discover this channel and enjoy your great backlog.

ytamb
Автор

Thank you for putting this together! It saved me a ton of time.

wilson_
Автор

Great teach with understandable examples. THANKS Fanis :)

titokris
Автор

Thank you, this is great topic to learn.

OlehBiblyi
Автор

Once again amazing video. Keep them coming. Congratulations. May I ask which extension do you use for the terminal to show the git repo and what is your coding for this extension? Thank you!

kazepis
Автор

Thankyou very much for the very informative video. This is what I have been looking for. But I have a question I have the same setup I am using the shared library in different workspaces. Locally everything works fine and I can see the shared library component in different workspaces but when deplying it "it doesnt work". It gives the error" NG0203: inject() must be called from an injection context such as a constructor, " Could you please let me know if you have any soluition to this problem. I am using angular v18 using standalone components.

bantooshgaming
Автор

Thank you for this great video, got one question, "my-lib" in having a local path. how should this work if we want to deploy user app separately in prod ?

tawfiktn
Автор

Loving the content. Between client app 1 and client app 2. I am wondering why you wouldn't use npm link?

winnemucca-sk
Автор

Se Euxapisto Profanis I am the man with the Dodecanese accent
I like your video so much I subscribed to your channel
regards nico (niko)

dvp
Автор

Thanks for the video, it is very helpful.
A question, what is the tool that you use to draw on screen ?

njarasoa
Автор

i like how you were able to point to the client one with tsconfig. I am struggling with one concept. we have a package.json for the library in the projects and a package.json for the workspace. I don't want all of my projects to be included into my library build. How would I address this?

winnemucca-sk
Автор

In the second workspace when we try to import the library it's throwing an error of can't find the library path. How to resolve this @Code Shots With Profanis?

MrNigam
Автор

I was getting "Cannot read property 'bindingStartIndex' of null" and your video helped me to solve this error easily, thank you!

leonardooliveira
Автор

Why create different workspace if you can create multiple apps within projects directory in a single workspace ?

dikendrasiwakotirowansiwak