add style to the doc

This commit is contained in:
Mario Romano
2016-06-01 12:21:36 +01:00
parent c056bd075b
commit a6d3c99904
5 changed files with 94 additions and 32 deletions

View File

@@ -16,16 +16,6 @@ npm set registry http://devproducts.alfresco.me:4873
npm install --save ng2-alfresco-upload
```
## Build from sources
Alternatively you can build component from sources with the following commands:
```sh
npm install
npm run build
```
Components included:
- [Upload button](#upload-button)
@@ -191,6 +181,32 @@ bootstrap(MyDemoApp, [
**showDialogUpload**: {boolean} optional) default true. Hide/show upload dialog.<br />
#### Style
The style of this component is based on material design, so if you want to visualize it correctly you have to add the material
design dependency to your project:
```sh
npm install --save material-design-icons material-design-lite
```
Also make sure you include these dependencies in your .html page:
```html
<!-- Google Material Design Lite -->
<link rel="stylesheet" href="node_modules/material-design-lite/material.min.css">
<script src="node_modules/material-design-lite/material.min.js"></script>
<link rel="stylesheet" href="node_modules/material-design-icons/iconfont/material-icons.css">
```
## Build from sources
Alternatively you can build component from sources with the following commands:
```sh
npm install
npm run build
```
## Running unit tests
```sh