An AngularJs Bootstrap Input for numeric values
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
Jquery 3.1.1
Bootstrap 3.3.7
AngularJS 1.5.0
Installing
From Git
Clone this repository
git clone https://code.siemens.com/florian.frank/input-numeric.git
From NPM
npm install input-numeric
Usage
Add the build/input-numeric.js and build/input-numeric.css to your project
<script src="path/to/repo/build/input-numeric.js"></script>
<script src="path/to/repo/build/input-numeric.css"></script>
To use the component, inject it to your module.
angular.module("myApp",["inputNumeric"])
Then use it in your HTML as follow
<input-numeric min="-10" max="100" step="0.01" number-of-decimals="2" read-only="false" value="$ctrl.myNumber"></input-numeric>
Running the tests
Run grunt task "test" in the root of the project
grunt test
Running the build
Run grunt task "build" in the root of the project
grunt build
Samples
Run grunt task "server" in the root of the project.
grunt server
Then select the samples folder.
Built With
- Grunt - The Javascript Task Runner
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Publishing
Automatet publishing of tags on code.siemens.com.
Manual publish a new tag on npm HowTo //TODO autmated publish
Authors
- Florian Frank
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details