# blv-frw

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.4.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## Generate Library

##### 1.  Check by comment all Routing in AppComponent
##### 2. run ` npm build:lib `
##### 3. Copy folder src/assets to dist/
##### 4. Publish library ` npm publish dist`

## Using Library 

##### 1.  install necessary libraries
`npm install bootstrap --save && npm install --save @ng-bootstrap/ng-bootstrap && npm install --save blv-frw && npm install font-awesome --save && npm install --save ng-sidebar && npm install jquery --save && npm install --save ng2-dragula && npm install --save  amcharts3 && npm install --save @amcharts/amcharts3-angular `

##### 2.  Import by AppComponent
- ` NgbModule.forRoot()`
- ` FrwModule`

##### 3.  Configure imports in ` angular-cli.json `
- add in ` styles [ ... ] `
        
        "node_modules/bootstrap/dist/css/bootstrap.min.css",
        "node_modules/font-awesome/css/font-awesome.css",
        "node_modules/blv-frw/assets/scss/styles.scss",
        "node_modules/amcharts3/amcharts/plugins/export/export.css",
        "node_modules/dragula/dist/dragula.css",
        "src/styles.scss"

- add in ` scripts [ ... ] `

       "node_modules/jquery/dist/jquery.min.js",
       "node_modules/amcharts3/amcharts/amcharts.js",
       "node_modules/amcharts3/amcharts/serial.js",
       "node_modules/amcharts3/amcharts/themes/light.js"


- add in ` assets [ ... ] `

        {
          "glob": "**/*",
          "input": "../node_modules/blv-frw/assets/",
          "output": "./assets/"
        }
