Тёмный

Angular Library: Learn How To Create And Use It In Your App 

Code Shots With Profanis
Подписаться 8 тыс.
Просмотров 40 тыс.
50% 1

In this video, you will see how to create an #angular #library, and how to use it in your application.
Useful commands:
- Create a library: ng generate library my-lib
- Build a library is: ng build my-lib --watch
✨ Code: github.com/profanis/codeShots...
✨ For more info regarding Angular Libraries: angular.io/guide/creating-lib...
******************************************************
Let's connect
******************************************************
Twitter: / prodromouf
LinkedIn: / prodromouf
#angular #angularlibrary #library #angulartutorial

Наука

Опубликовано:

 

21 сен 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 63   
@drakZes
@drakZes Год назад
Love the fact that you took 5 minutes to explain Angular libraries. That was really well explained and to the point. Thank you!
@CodeShotsWithProfanis
@CodeShotsWithProfanis Год назад
Thanks for your feedback. Glad you liked it!
@ShubhamSingh-bm4ig
@ShubhamSingh-bm4ig 2 месяца назад
Great video. Keep making videos on Angular.❤
@miguelperezpalacios
@miguelperezpalacios Год назад
Thank you for shaing, I've commented on this video in the past but I always come back for a quick refresher!!
@CodeShotsWithProfanis
@CodeShotsWithProfanis Год назад
You are so welcome!
@Nabulio85
@Nabulio85 10 месяцев назад
Quick, but really good explanations. Thx Fanis!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 10 месяцев назад
Glad you liked it!
@bjartemicheljensen8146
@bjartemicheljensen8146 2 года назад
Dear Profanis. Great piece of communication work and what a brilliant tutorial. Thank you.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thanks for your feedback Bjarte. Glad you liked it!
@ramyabalasubramanian6916
@ramyabalasubramanian6916 3 месяца назад
Very well explained. Thank you!
@ajaykharat9226
@ajaykharat9226 11 месяцев назад
Thanks Man !! Great Tutorial !!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 11 месяцев назад
Thanks! Glad it helped!
@MiguelPerez-em8gs
@MiguelPerez-em8gs 2 года назад
Great explanation Profanis!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thanks for your feedback Miguel. Glad you liked it!
@ahmetozturk5178
@ahmetozturk5178 2 года назад
Very nice! I would like to see also your approach how you would transform this library component into a webcomponent later. Thanks again for the great content! So clean and simple!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thanks for the feedback and your suggestion. That's a good idea actually :)
@damiankacprzak8322
@damiankacprzak8322 3 месяца назад
Great material I highly recommend
@JaiGtz
@JaiGtz 2 года назад
Thanks Profanis, your explanation is very clear and easy to understand..keep it up the good work.. =)
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thanks for your warm feedback. Glad you liked it!
@johnstypa2365
@johnstypa2365 2 года назад
Nicely presented!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thank you! Glad you liked it!
@octavian3033
@octavian3033 2 года назад
Very well explained. Thank you.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thanks for your feedback! Glad you liked it!
@edgardoni35
@edgardoni35 Год назад
Awesome video, very well explained and it's less than 6 minutes!! 😀
@CodeShotsWithProfanis
@CodeShotsWithProfanis Год назад
Thanks for your feedback! Glad you find it useful :)
@suman6476
@suman6476 8 месяцев назад
Great explanation.
@binurajtech9663
@binurajtech9663 Год назад
Really liked this video... Thankyou!!😊
@CodeShotsWithProfanis
@CodeShotsWithProfanis Год назад
So glad!
@julianosoder4405
@julianosoder4405 2 года назад
Thank you, very nice tutorial
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thanks for your feedback. Glad you liked it!
@demidovmaxim1008
@demidovmaxim1008 2 года назад
Thank you so much, it's greatest!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thanks for your feedback. Glad you liked it :)
@WesFanMan
@WesFanMan 2 года назад
Nice work! I appreciate the effort and excellent content. I would like to suggest that when you are highlighting a screen area, use a yellow or white line. Red on black is very hard to see.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
Thanks a lot for your feedback and the suggestion :)
@costagmc1
@costagmc1 Год назад
great prof..
@sofiachaveshernandez2373
@sofiachaveshernandez2373 Год назад
What a clear explanation! Do we ever need to run npm install in the library before we build it?
@CodeShotsWithProfanis
@CodeShotsWithProfanis Год назад
As soon as the library it's part of your application, I do find the reason to run npm i in the library itself
@luusyphre
@luusyphre Год назад
Hi, I'm trying to import the my-lib into a separate project. So after creating the lib, I do "ng new test-app" and doing an npm install from the local path, I import MyLibModule from "my-proj/projects/my-lib/src/public-api" but when I put the tag into the html file, I get the error: "Cannot read properties of undefined (reading 'ɵcmp')" Any idea what I'm going wrong?
@hamzaakbar5321
@hamzaakbar5321 Год назад
What about the npm plugin to use it in the app, Plugin his component like abc and we want to use that component selector in over app how it will possible ?
@whoopigoldberg8121
@whoopigoldberg8121 Год назад
I see what you can also describe how to use the "paths" option from tsconfig. It's need to link our library code via import links and debug in realtime.
@Applekendee
@Applekendee 11 месяцев назад
Really good guide, I was able to set up my Angular Library, however what is the best approach to setup a common models. I will use it in the Library and in another workspace application.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 10 месяцев назад
In this case the models shouldn't be in the application but rather in the library. If however you are about to use the models from another library as well, then you can have the models in a completely separate library.
@Applekendee
@Applekendee 10 месяцев назад
@@CodeShotsWithProfanis Is it possible to use a global CSS to be use by the libraries and the applications?
@CodeShotsWithProfanis
@CodeShotsWithProfanis 10 месяцев назад
@@Applekendee The global CSS should live in the library. Say that you have a custom UI library that has some re-usable components. In that library you can have the global CSS where it's gonna be referenced by itself and the application(s)
@xavierl2216
@xavierl2216 2 года назад
Hi, Do you have a sample where the service class is abstract because I do no see it working ? Thanks the video is simple and clear :)
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
So, if I got you correctly, you want in a library to create an abstraction and use this abstraction in your app. Right? If so, it's a good idea to create a video for
@peymanta8923
@peymanta8923 2 года назад
Thanks. How does watch mode work with multiple libs?
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
You can set in different terminals a watch mode in each library. Say that you have the library "my-lib" and the library "another-lib" You should: ng build my-lib --watch ng build another-lib --watch
@matheusjordan6031
@matheusjordan6031 2 года назад
Thanks for this useful video, how we can publish this on npm?
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
This will be one of the next videos. Stay tuned ;)
@g-luu
@g-luu 2 года назад
Nice one but what about dependencies? For instance the library uses angular material.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
I will cover this in one of my next videos Stay tuned ;)
@dennis87ist
@dennis87ist 2 года назад
what tool do you use for design on screen?
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
My OS is kubuntu and this is a built-in feature which called "mouse marker"
@boyefrederic4716
@boyefrederic4716 2 года назад
Hello sir, is it possible to use the lib without building it
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
You can define in the paths of the tsConfig the public_api of the library you want to use.
@DotnetistEnterprise
@DotnetistEnterprise 2 года назад
how can I have that colorful terminal ?
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 года назад
I am using oh-my-bash with the theme "brainy"
@DotnetistEnterprise
@DotnetistEnterprise 2 года назад
Cool thank you
@thesweetvishu
@thesweetvishu Год назад
very nice....
@CodeShotsWithProfanis
@CodeShotsWithProfanis Год назад
Thanks a lot
@manishmunjal-jeenasikho
@manishmunjal-jeenasikho 9 месяцев назад
how to create external library
@saibhargavp5120
@saibhargavp5120 3 месяца назад
✖ Generating FESM2020 ENOTSUP: operation not supported on socket, link 'D:\Sai\dummy-project\.angular\cache\15.2.10 g-packagr\tmp\c5e6e4e2' -> 'D:\Sa i\dummy-project\.angular\cache\15.2.10 g-packagr\content-v2\sha512\bc\a9\dc07ebc8b3870c72446c23744c06ec33dcfbd4161d1504b5bf6585 2498e31f5c3aad19c107ea3773c2d72e5cfaaff5cf14737326d7a3d661e0928fec3988' Getting the above error while running the 'ng build conv-lib' how to resolve it.
Далее
Мама ударила дочь #shorts #iribaby
00:17
UFC 302: Пресс-конференция
22:48
Просмотров 1,4 млн
Пробую торты
00:43
Просмотров 225 тыс.
How to create angular library and publish on npm?
9:48
ngTemplateOutlet is WAY more useful than I realised
16:36
Angular library tutorial
15:01
Просмотров 62 тыс.
Create Your First Angular Library - Nir Kaufman
37:19
How to make your own NPM package (Step-by-Step) 📦
16:46
Learn How to Create Dynamic Component in Angular
8:57
Understand Angular Signals in 20 Minutes
20:17
Просмотров 6 тыс.
The Story of Next.js
12:13
Просмотров 532 тыс.
iphone fold ? #spongebob #spongebobsquarepants
0:15
Просмотров 184 тыс.