This repository was archived by the owner on Apr 30, 2018. It is now read-only.
1.0.0
1.0.0 Changeset
Backward compatible changes:
- Fixed bug with initializing select template.
- Added the ability to do validation on fields with
formly-dynamic-name
. - Added
formly-custom-validation
directive. - Added warning in
formly-field
when more than just a type, template, or templateUrl are provided (should only have one)
Internal Changes
- Moved all demo-only related files to a demo folder and added a symbolic link to src and bower_components so when it's deployed the src and bower_components go with it. This will also allow us to make a symlink in the test directory when it's created.
- Separated out the src folder into three sub folders:
common
,bootstrap
, andvanilla
. The build takesbootstrap
andvanilla
and builds them separately. They each build withcommon
. There is also a separate file for setting up the default template mapping with their types and this is excluded for theno-templates
build. The final output is:formly.js
,formly.bootstrap.js
, andformly.vanilla.js
. Adding other styles will be very easy. It also should make it possible for us to have directive templates (funcationality for a field). - Updated the demo to use a built version of formly because templates were such a pain. The Gruntfile has been updated to rebuild bootstrap every time something changes when
grunt watch
is running. - Moved the
formly-form
template into a file again and added transclusion.
Breaking changes:
- Moved all field templates to separate repositories.
- Added no-template build that builds to
formly.js
and changed vanilla build toformly.vanilla.js
. - Removed all options to customize the submit button and now transclude instead. Because there are multiple skins of formly it made little sense to have a template for formly that needed different styling based on the build target (bootstrap vs. vanilla). The
formly-form
directive now transcludes so a submit button can be added there. - Removed
formlyOptionsProvider
because all useful global customizability is now unecessary. - Renamed
formlyTemplateProvider
toformlyConfigProvider
to make it more generic for any future customization needs. The api is the same as before. - Added
setTemplate
andgetTemplate
to theformlyConfigProvider
allowing developers to set template strings rather than simply a url. - Removed
default
property. Interact with theformData
to set the form data. - Removed
value
from scope on templates. To access the value, you must now useresult[option.key || $index]
.