Overview
The document provides instructions for getting started with the carbon-components-angular project. It includes information on the installation process and compatibility with different Angular versions.
Features
- Offline usage: The document explains how to set the
$font-path
in thesrc/styles.scss
file to copy fonts to thedist
folder for offline usage. - Assets folder: If desired, users can copy fonts from the
node_modules/carbon-components/src/globals/fonts
directory to the app’ssrc/assets/fonts
folder for organizing fonts separately from thedist
folder. - Compatibility matrix: The document includes a matrix that lists the supported versions of Angular and Carbon Components Angular, indicating community support and active support for each version.
Installation
To get started with the carbon-components-angular project, follow these steps:
- Start with a new
@angular/cli
project. - Include
carbon-components
in thesrc/styles.scss
file.- For offline usage, set
$font-path: '~carbon-components/src/globals/fonts';
at the top ofsrc/styles.scss
. This will copy the fonts to thedist
folder during the build. - To keep the fonts in the assets folder instead, copy them from
node_modules/carbon-components/src/globals/fonts
to the app’ssrc/assets/fonts
folder. Then, add$font-path: '/assets/fonts/';
at the top ofsrc/styles.scss
.
- For offline usage, set
- Run
npm start
to start building the application.
Summary
The document provides instructions for installing and getting started with the carbon-components-angular project. It explains the process of including carbon-components in the project and provides options for offline usage and organizing fonts. Additionally, it includes a compatibility matrix indicating the supported versions of Angular and Carbon Components Angular.