Skip to content

Commit

Permalink
Added example stackblitz demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkovacic authored Jan 13, 2019
1 parent 3eba8a9 commit 3063e31
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ Include script tags similar to the following:
<script src='/node_modules/angular-touchspin/dist/angular-touchspin.min.js'></script>
```
Install using commonjs (eg componentjs, Webpack, Browserify):
```
angular.module('myModule', [require('angular-touchspin')]);
```javascript
import { default as touchspinModule } from 'angular-touchspin';
import 'angular-touchspin/dist/angular-touchspin.css';

angular.module('myModule', [touchspinModule]);
```
For CSS support with Webpack, install the style-loader, css-loader (and postcss-loader) and configure the loader in your webpack.config.js similar to the following:
```
Expand All @@ -57,6 +60,10 @@ Download the code from [https://github.com/nkovacic/angular-touchspin/releases/l
<script src='/path/to/unzipped/files/dist/angular-touchspin.min.js'></script>
```

### Demo

The demo can be found on [stackblitz](https://stackblitz.com/edit/angular-touchspin-example) and features all the examples found in the [dev](https://github.com/nkovacic/angular-touchspin/tree/master/dev) folder in this repository.

### Usage

3. Include `angular-touchspin.min.js`
Expand Down

0 comments on commit 3063e31

Please sign in to comment.