Getting Started with Angular Awesome

Learn how to install and use Angular Awesome in your projects

Home | Components | GitHub Repository

Installation

Step 1: Prerequisites

Before installing Angular Awesome, make sure you have:

  • Angular 19.2 or later
  • Node.js 16 or later
  • npm 7 or later

Angular Awesome requires the following peer dependencies:

  • angular/core ^19.2.0
  • angular/common ^19.2.0
  • angular/forms ^19.2.0

Step 2: Install the Package

Install Angular Awesome from npm:

npm install angular-awesome

Step 3: Include Web Awesome Assets

Angular Awesome is a wrapper for Web Awesome components. You need to include the Web Awesome assets in your project.

Note: If you're using Font Awesome, you can add your kit code with the data-fa-kit-code attribute.

Basic Usage

Step 1: Import Components

Each component is standalone and can be imported individually. See the GitHub repository for import examples.

Step 2: Use in Templates

Use the components in your templates with their native tag names. All components support Angular template-driven forms with ngModel binding.

Note: All components support Angular template-driven forms with ngModel binding.

Step 3: Configure Your Module

If you're using NgModules, make sure to include CUSTOM_ELEMENTS_SCHEMA in your module.

Important: The CUSTOM_ELEMENTS_SCHEMA is required to allow Angular to recognize the Web Awesome custom elements.

Styling Components

Using CSS Custom Properties

Angular Awesome components expose styling options as Angular inputs that map to CSS custom properties.

Using Utility Classes

Web Awesome provides utility classes for common styling needs:

  • wa-align-items-* - For alignment (start, end, center, stretch, baseline)
  • wa-gap-* - For spacing (0, 3xs, 2xs, xs, s, m, l, xl, 2xl, 3xl)
  • wa-accent, wa-outlined, wa-filled, wa-plain - For appearance
  • wa-brand, wa-neutral, wa-success, wa-warning, wa-danger - For color variants

Next Steps

Now that you've set up Angular Awesome, you can: