Skip to content

Commit 5423e29

Browse files
committed
fix code snippet in readme and input type when allowDecimal is true
1 parent 664f681 commit 5423e29

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<a name="1.0.3"></a>
2+
## [v1.0.3](https://github.com/changLiuUNSW/angular-numeric-input/compare/1.0.2...1.0.3) (2016-12-2)
3+
4+
### Fixed
5+
6+
- code snippet in readme
7+
- input type when allowDecimal is true
8+
19
<a name="1.0.2"></a>
210
## [v1.0.2](https://github.com/changLiuUNSW/angular-numeric-input/compare/1.0.1...1.0.2) (2016-12-1)
311

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ angular.module('myApp', ['ui.numericInput'])
6262
Basic example:
6363

6464
``` html
65-
<input type="tel" ng-model="model" numeric-input>
65+
<input type="tel" ng-model="model" ui-numeric-input>
6666
```
6767

6868
`min`, `max` can be set dynamically:
6969

7070
``` html
71-
<input type="tel" numeric-input ng-model="model" data-min="{{min}}" data-max="{{max}}"/>
71+
<input type="tel" ui-numeric-input ng-model="model" data-min="{{min}}" data-max="{{max}}"/>
7272
```
7373

7474
## Development

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"homepage": "https://github.com/changLiuUNSW/angular-numeric-input",
44
"author": "Chang Liu <[email protected]>",
55
"description": "AngularJS directive to provide real-time number formatting and validations",
6-
"version": "1.0.2",
6+
"version": "1.0.3",
77
"main": [
88
"dist/angular-numeric-input.js"
99
],

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h3>allowDecimal</h3>
6464
<p>input: {{vm.decimalInput}}</p>
6565
<div class="form-group">
6666
<label for="decimalInput" class="sr-only">Number:</label>
67-
<input type="tel" ui-numeric-input name="decimalInput" id="decimalInput" class="form-control" ng-model="vm.decimalInput" allow-decimal="true" />
67+
<input type="text" ui-numeric-input name="decimalInput" id="decimalInput" class="form-control" ng-model="vm.decimalInput" allow-decimal="true" />
6868
<div ng-messages="vm.demoFrom.decimalInput.$error" class="error" role="alert" data-ng-show="!vm.demoFrom.decimalInput.$pristine">
6969
<div ng-message="min">min error</div>
7070
<div ng-message="max">max error</div>
@@ -81,7 +81,7 @@ <h3>all features</h3>
8181
<p>input: {{vm.allInput}}</p>
8282
<div class="form-group">
8383
<label for="allInput" class="sr-only">Number:</label>
84-
<input type="tel" ui-numeric-input name="allInput" id="allInput" class="form-control" ng-model="vm.allInput" allow-decimal="true" min="{{vm.min}}" max="{{vm.max}}" max-not-equal="true" min-not-equal="true" max-length="10" />
84+
<input type="text" ui-numeric-input name="allInput" id="allInput" class="form-control" ng-model="vm.allInput" allow-decimal="true" min="{{vm.min}}" max="{{vm.max}}" max-not-equal="true" min-not-equal="true" max-length="10" />
8585
<div ng-messages="vm.demoFrom.allInput.$error" class="error" role="alert" data-ng-show="!vm.demoFrom.allInput.$pristine">
8686
<div ng-message="min">min error</div>
8787
<div ng-message="max">max error</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-numeric-input",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "AngularJS directive to provide real-time number formatting and validations",
55
"main": "./index.js",
66
"scripts": {

0 commit comments

Comments
 (0)