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

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น •

  • @drakZes
    @drakZes 2 ปีที่แล้ว +15

    Love the fact that you took 5 minutes to explain Angular libraries. That was really well explained and to the point. Thank you!

  • @miguelperezpalacios
    @miguelperezpalacios 2 ปีที่แล้ว +1

    Thank you for shaing, I've commented on this video in the past but I always come back for a quick refresher!!

  • @ShubhamSingh-bm4ig
    @ShubhamSingh-bm4ig 10 หลายเดือนก่อน +2

    Great video. Keep making videos on Angular.❤

  • @bjartemicheljensen8146
    @bjartemicheljensen8146 2 ปีที่แล้ว +2

    Dear Profanis. Great piece of communication work and what a brilliant tutorial. Thank you.

  • @Nabulio85
    @Nabulio85 ปีที่แล้ว +1

    Quick, but really good explanations.
    Thx Fanis!

  • @ramyabalasubramanian6916
    @ramyabalasubramanian6916 11 หลายเดือนก่อน +1

    Very well explained. Thank you!

  • @ajaykharat9226
    @ajaykharat9226 ปีที่แล้ว +2

    Thanks Man !! Great Tutorial !!

  • @JaiGtz
    @JaiGtz 2 ปีที่แล้ว +1

    Thanks Profanis, your explanation is very clear and easy to understand..keep it up the good work.. =)

  • @MiguelPerez-em8gs
    @MiguelPerez-em8gs 2 ปีที่แล้ว +1

    Great explanation Profanis!

  • @edgardoni35
    @edgardoni35 2 ปีที่แล้ว +1

    Awesome video, very well explained and it's less than 6 minutes!! 😀

  • @johnstypa2365
    @johnstypa2365 2 ปีที่แล้ว +1

    Nicely presented!

  • @ahmetozturk5178
    @ahmetozturk5178 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      Thanks for the feedback and your suggestion. That's a good idea actually :)

  • @octavian3033
    @octavian3033 2 ปีที่แล้ว +1

    Very well explained. Thank you.

  • @binurajtech9663
    @binurajtech9663 2 ปีที่แล้ว +1

    Really liked this video... Thankyou!!😊

  • @julianosoder4405
    @julianosoder4405 2 ปีที่แล้ว +1

    Thank you, very nice tutorial

  • @demidovmaxim1008
    @demidovmaxim1008 2 ปีที่แล้ว +1

    Thank you so much, it's greatest!

  • @ANJANALAKMAL
    @ANJANALAKMAL 7 หลายเดือนก่อน

    Great explanation. Thanks

  • @suman6476
    @suman6476 ปีที่แล้ว

    Great explanation.

  • @damiankacprzak8322
    @damiankacprzak8322 11 หลายเดือนก่อน

    Great material I highly recommend

  • @costagmc1
    @costagmc1 2 ปีที่แล้ว +1

    great prof..

  • @WesFanMan
    @WesFanMan 3 ปีที่แล้ว +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.

  • @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 ปีที่แล้ว

    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  ปีที่แล้ว +1

      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 ปีที่แล้ว

      @@CodeShotsWithProfanis Is it possible to use a global CSS to be use by the libraries and the applications?

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  ปีที่แล้ว

      @@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)

  • @sofiachaveshernandez2373
    @sofiachaveshernandez2373 2 ปีที่แล้ว +1

    What a clear explanation!
    Do we ever need to run npm install in the library before we build it?

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  2 ปีที่แล้ว +1

      As soon as the library it's part of your application, I do find the reason to run npm i in the library itself

  • @hamzaakbar5321
    @hamzaakbar5321 2 ปีที่แล้ว

    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 ?

  • @dennis87ist
    @dennis87ist 3 ปีที่แล้ว +1

    what tool do you use for design on screen?

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  3 ปีที่แล้ว

      My OS is kubuntu and this is a built-in feature which called "mouse marker"

  • @peymanta8923
    @peymanta8923 3 ปีที่แล้ว +1

    Thanks. How does watch mode work with multiple libs?

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  3 ปีที่แล้ว +1

      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

  • @dotnetist
    @dotnetist 3 ปีที่แล้ว +1

    how can I have that colorful terminal ?

  • @xavierl2216
    @xavierl2216 2 ปีที่แล้ว +1

    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

  • @boyefrederic4716
    @boyefrederic4716 3 ปีที่แล้ว +1

    Hello sir, is it possible to use the lib without building it

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  3 ปีที่แล้ว

      You can define in the paths of the tsConfig the public_api of the library you want to use.

  • @matheusjordan6031
    @matheusjordan6031 3 ปีที่แล้ว +1

    Thanks for this useful video, how we can publish this on npm?

  • @luusyphre
    @luusyphre 2 ปีที่แล้ว

    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?

  • @g-luu
    @g-luu 3 ปีที่แล้ว +1

    Nice one but what about dependencies? For instance the library uses angular material.

  • @manishmunjal-jeenasikho
    @manishmunjal-jeenasikho ปีที่แล้ว

    how to create external library

  • @thesweetvishu
    @thesweetvishu ปีที่แล้ว +1

    very nice....

  • @saibhargavp5120
    @saibhargavp5120 11 หลายเดือนก่อน

    ✖ 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.