0.0.17 • Published 5 years ago
dxo-ui-shared v0.0.17
DCX UI Shared
Install
npm i dxo-shared-uiConfigure
You will need to add a couple of configurations to your Angular application's angular.json file.  Locate the application's config, and update its architect.build.options like so:
"options": {
  "styles": [
    "src/styles.scss",
    "node_modules/dxo-shared-ui/css/core.scss"
  ],
  "stylePreprocessorOptions": {
    "includePaths": [
      "node_modules/dxo-shared-ui/css"
    ]
  }
}Import
To use the SymSharedModule, you will need to import it into your Angular application:
import { SymSharedModule } from 'dxo-shared-ui';
@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    SymSharedModule,
  ],
  bootstrap: [AppComponent],
})If you need the reference to a specfic component for use with something like Storybook, you can import the component directly from the dxo-shared-ui package:
import { ButtonComponent } from 'dxo-shared-ui';