What are angular packages
In Angular, packages refer to collections of reusable code that extend Angular’s functionality. These packages are usually installed via npm (Node Package Manager) and can include core Angular modules, third-party libraries, or custom-built features.
Types of Angular Packages
Core Angular Packages (Maintained by Angular)
@angular/core
→ Core framework functionalities@angular/common
→ Common utilities like directives and pipes@angular/router
→ Routing and navigation@angular/forms
→ Template-driven and reactive forms@angular/animations
→ Animation support@angular/http
/@angular/common/http
→ HTTP client module@angular/platform-browser
→ Browser-specific functionalities@angular/platform-browser-dynamic
→ Runtime compilation for JIT (Just-In-Time) compilation
Third-Party Packages (Community and Vendor Supported)
rxjs
→ Reactive programming with observablesngx-bootstrap
→ Bootstrap components for Angular@ng-bootstrap/ng-bootstrap
→ Another Bootstrap component libraryngrx/store
→ State management (Redux pattern)angular-material
→ Google's Material Design componentsprimeng
→ UI components for enterprise applications
Utility Packages
lodash
→ Utility functions for arrays, objects, and stringsmoment
ordate-fns
→ Date and time manipulationchart.js
/ngx-charts
→ Charting libraries for data visualization
Custom Angular Packages
- You can create and publish your own Angular package as an npm module.
- Custom-built Angular libraries (e.g., shared components, utility services).