Category: AngularJS

AngularJS, JavaScript

Currency Inputs in AngularJS (1.x)

Currency inputs seem to be a forgotten area of standard libraries. Even the batteries included .NET MVC framework doesn’t really answer the question for you. They often are omitted completely, and the community variants are many and buggy. This soup of conflicting standards over a very basic problem brings us to the canonical problem: when …

AngularJS, JavaScript

AngularJS Readonly Dropdown

HTML select’s don’t implement the readonly attribute, so the only way to prevent them from being edited is to use the disabled attribute. Doing so however prevents them from being posted on submission. The standard solution for this is create a hidden input field, which you have to keep in sync with the disabled select …