Releases: chouseknecht/angular-forms.js
Purple Cow
Purple Cow continues...
- Added support for a custom field type. Include any HTML as a string. Include directives such as ng-include and/or ng-controller to create advanced controls and add animations.
- Added a modelObject property to the form definition. Provides a convenience for adding an object name to generated ng-model values.
See updated reference docs at angularforms.org
Purple Cow
Fixed the following bugs:
- ngOptions now works properly on select elements
- Removed control-label class from checkbox labels
- Fixed duplicate modelObject appearing on radio buttons
Purple Cow
- Fixed hide/show fields and form validation. When fields are hidden using the ng-hide direcitve, they will now be removed from the angular form controller. When fields are shown using ng-show, they will be added to the angular form controller. Previously fields were not automatically added and removed from the controller, and this often caused the form to be in an invalid state due to errors on a hidden field. The user could not fix the problem, and the save button would be disabled.
- Added a clearError() method to clear errors on a single field.
- Code cleanup: removed afEmpty factory
- Changing the module name to angularforms from AngularFormsModule. The factory is still called AngularForms.
- For the modal module, changed the name to angularforms.modal from AngularFormsModalModule.
Latest Changes
Added CSS override feature
Spinner now selects all contents on click event
Updated doc site
Better Butter
Fixed bower.json to have a "main". This allows grunt plugins like bower-install to work correctly.
Added "ignore" to bower.json so that sample app is no longer installed via bower
Updated broken jquery script reference in sample app.
Moved distribution files to a dist directory rather than having them sit in the project root.
Butter
Continuing to build... Improved error handling and error message display. Added a simple style sheet to make integration easier. New styling and error handling added to sample app. Improved doc site.
- Added setError() method to make setting custom error messages super simple. setError('field_name', 'message') adds ng-invalid class to the form field and displays the error message.
- clearErrors() handles removal of ng-invalid class
- Added starRequired form attribute. Setting to true will prepend an asterisk to field labels. If no field label, prepend place holder with asterisk.
- Added angular-forms.css style sheet, which should make it easier to integrate angular-forms.js into a project and build forms that look like the demo and doc sites.
- Styling in sample app and doc site no longer outlines required fields with red border on focus. When a field contains an error and receives the ng-invalid class, a red border is applied. This makes it much easier for the user to spot validation issues. Use the starRequired form attribute to add asterisks to required fields, as mentioned above.
-Fixed bower.json to have standard dependencies and devDependencies. Install devDependencies to run the sample app.
-Add Grunt build process for development.
Butter
v1.0.5 Fixed sample app footer styling.
Beta Release
Welcome to AngularForms beta release!
Not everything is perferct, but it's pretty good. The sample site included in the project has lots of examples, and the documentation is coming along- see angularforms.org.
- JQueryUI is now in the mix with a new input type of 'spinner' that creates a JQueryUI number spinner.
- Custom errors can now be reported to the user upon form submission.
- An input field can now have a default value using defaultValue key.
- Added a resetForm() method to put the form back to its default state. Excepts an optional object of key:value pairs to override default values. Use when editing existing data.
- Added a clearErrors() method to clear custom error messages.
- Expanded sample app (included in source repo) to demonstrate custom errors, clearErrors(), resetForm() and spinner type.
Pre-beta release
Working through documentation and distribution setup.