Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 1.5 KB

getting-started.md

File metadata and controls

74 lines (55 loc) · 1.5 KB

Getting started

Step 1: Install

NPM

npm install --save @ptsecurity/mosaic @ptsecurity/cdk

Yarn

yarn add @ptsecurity/mosaic @ptsecurity/cdk

Snapshots builds

A snapshot build with the latest changes from master is also available. Note that this snapshot build should not be considered stable and may break between releases.

NPM

npm install --save positive-js/mosaic-builds positive-js/cdk-builds

Yarn

yarn add positive-js/mosaic-builds positive-js/cdk-builds

Step 2: Animations

NPM

npm install --save @angular/animations

Yarn

yarn add @angular/animations
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';


@NgModule({
  ...
  imports: [ BrowserAnimationsModule ],
  ...
})
export class AppModule { }

Step 3: Import the component modules

You can create a separate NgModule that imports all of the components that you will use in your application. You can then include this module wherever you'd like to use the components.

import { McButtonModule, McCheckboxModule } from '@ptsecurity/mosaic';

@NgModule({
    imports: [ McButtonModule, McCheckboxModule ],
    exports: [ McButtonModule, McCheckboxModule ]
})
export class CoreCustomModule { }

Step 4: Include a theme

Including a theme is required to apply all of the core and theme styles to your application.

@import "~@ptsecurity/mosaic/prebuilt-themes/default-theme.css";