Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Override Default Options & Value Watchers

Compare
Choose a tag to compare
@ghelton ghelton released this 06 Aug 17:59
· 909 commits to master since this release

Features

Adding the formlyOptionsProvider which allows developers to set default form options.

Adding submitButtonTemplate to the configurable formlyOptions. If it has a value, then the button in the formly-form directive will be replaced with the compiled (on the scope) version of that value. Also adding twitter classes to the submit button so hopefully this template will be unecessary in some cases.

Adding the watch property which has both expression and listener properties. Formly will set a watcher on its own scope. If the watch.expression is a function, it will be wrapped and the first argument to that expression function will be the field, the rest will be the normal watch expression definition. The same is true for listener.