JSPM

@abgov/angular-components

2.0.0-alpha.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 620
  • Score
    100M100P100Q102110F
  • License Apache-2.0

Government of Alberta - UI components for Angular

Package Exports

  • @abgov/angular-components

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@abgov/angular-components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

angular-components

This library contains angular components from the Government of Alberta. This plugin uses angular 11, which is required to make it compatible with the latest nx angular generator.

UI Components Storybook - Angular

Installation

  1. Add @abgov/angular-components npm add --save @abgov/angular-components
  2. OPTIONAL: in package.json specify the allowed versions for installation
  3. Add peer dependencies
  4. OPTIONAL: Add to styles to import Alberta fonts and global element styles. @import '~@abgov/angular-components/theme.css';
  5. Add localize to polyfill.js import '@angular/localize/init';
  6. Add "preserveSymlinks": true to configurations in angular.json.

Documentation

Documentation is being worked on and will be provided soon.

Usage

import { AngularComponentsModule } from '@abgov/angular-components'
...
@NgModule({
  ...
  imports: [
    AngularComponentsModule
  ],
  ...
})

For experimental components, import ExperimentalComponentsModule.

import { AngularComponentsModule, ExperimentalComponentsModule } from '@abgov/angular-components'
...
@NgModule({
  ...
  imports: [
    AngularComponentsModule,
    ExperimentalComponentsModule
  ],
  ...
})