Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Code Once, Use Everywhere: The Power of Angula...

Code Once, Use Everywhere: The Power of Angular Libraries

In today’s fast-paced development landscape, reusability and maintainability are paramount. This session delves into the power of Angular libraries, showcasing how they can streamline your development process and enhance collaboration across teams.
Join us as we explore:
• What Are Angular Libraries?: Understand the core concepts and benefits of using libraries in Angular, including modularity and encapsulation.
• Building Your Own Library: Learn step-by-step how to create a custom Angular library, including best practices for structuring and documenting your code.
• Integrating Libraries into Projects: Discover strategies for efficiently integrating your libraries into existing applications, maximizing reusability and reducing redundancy.
• Case Studies and Real-World Examples: Hear about successful implementations and the impact of Angular libraries on productivity and code quality from industry experts.
• Future of Angular Libraries: Gain insights into emerging trends and tools that will shape the future of library development in the Angular ecosystem.
Whether you're a seasoned Angular developer or just starting out, this talk will equip you with the knowledge and skills to harness the full potential of Angular libraries, allowing you to "code once and use everywhere." Join us to unlock new efficiencies in your development workflow!

Ankit Kumar Sharma

December 16, 2024
Tweet

Other Decks in Technology

Transcript

  1. HCL Tech, • Consultant • Corporate Trainer • Web Technologies

    Consultant • Blogger Ankit Kumar Sharma www.ankitkumarsharma.com
  2. Today Agenda  What are Angular Libraries  Why we

    need a Library ?  How to create Library  How to use in local Angular App  Publish library to local & public npm www.ankitkumarsharma.com
  3. Java Script Quiz  Java Script  Mocha  LiveScript

     ECMA Script www.ankitkumarsharma.com What is the first name of Java Script ?
  4. What is Angular Library?  An Angular library is a

    package with a collection of components, services and other reusables solution code  It’s a reusable functionality, shareable code, or a complete solution for a particular feature.  It’s a compiled version of build that we can use in as per needs in projects. www.ankitkumarsharma.com
  5. Why we need Angular Library?  Reusability and Modularity 

    Maintainability and Versioning  Community platform and available for all  Micro frontend Application  A complete solution for required feature  Faster Development and Scaling www.ankitkumarsharma.com
  6. Create a Angular Library  ng new <workspace-name> --create-application=false 

    ng generate application <app-name>  ng generate library <library-name>  ng g c <component-name> --project=<app/library-name>  App file structure www.ankitkumarsharma.com
  7. Publish Angular Library to npm  npm run build <library-name>

     "pack-lib": "cd dist/my-lib && npm pack” – on package.json  npm run pack-lib  npm login  npm publish dist/my-lib/my-lib-0.0.1.tgz -–access=public www.ankitkumarsharma.com