InterviewHubPRO
Section Overview
Q189

Question 189 of 283

Part 8: Internationalization (i18n), Testing & DOM Directives (177 - 212)

67%
Angular & Signals (283 Qs)•Part 8: Internationalization (i18n), Testing & DOM Directives (177 - 212)

What is an angular library?

An Angular library is an Angular project that differs from an app in that it cannot run on its own. It must be imported and used in an app. For example, you can import or add service worker library to an Angular application which turns an application into a Progressive Web App (PWA).

Note: You can create own third party library and publish it as npm package to be used in an Application.

Practical Code Example

bash
# Creating an Angular Library:
ng generate library @my-org/ui-components
# Bundled with ng-packagr into FESM2022 format for npm distribution