cohenadair / angular.number-input Goto Github PK
View Code? Open in Web Editor NEWA number-only input element directive for AngularJS.
License: GNU General Public License v2.0
A number-only input element directive for AngularJS.
License: GNU General Public License v2.0
i am using ng-repeat in my checkout page but couldn't set the initial value to the number-input directive.
i have tried passing my json object in "start" attribute something like below but its throwing error
Can any one help me how to set the initial value.
I would like to use a placeholder in input instead of number 0 by default.
Hi cohenadair .
Your direct so cool. Bu how to input the decmial number when i keydown to input.
Exmp : When i focus input and keydown with 1.523 It's not working
I'd like to see prefix and postfix attributes added. Would allow for formatting like: "$12", "60%" or "12 hrs"
I need support for the ng-change attribute. Right now I'm using $scope.$watch to process changes in the ng-model value, but it doesn't seem like the right thing to do. Am I doing something wrong?
Documentation required for:
ngModel value stays the same as initial value, is not updated
When min is greater then zero value is always set to max
Example:
min = 6, max = 19
If you try to input number 11 it will set it to 6 and then to 19. It triggers on-change for 1st digit and sets the value to 6 since 1<6 and then 2nd digit is 1 which which produces 61>19.
Before user's actually interact with the form, Angular's $dirty
flag is set to true. This is because number-input sets a default value and Angular assumes it was the user who made the change.
One solution, and probably the easiest would be to manually, in number-input, set the $dirty
flag to false after the defaults have been set.
Users should have the option to use an "objects" object rather than being forced to use attributes.
Compress source files into distribution files:
Demo page needs to be created. Should demo:
Other stuff to include:
Allow variable editing via input boxes.
Read about and implement Angular unit tests.
This will allow users to type in any character rather than being restricted to number related characters.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.