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

Tips & Tricks

Kent C. Dodds edited this page Aug 19, 2014 · 6 revisions

Below are some tips and tricks from members in the community. Please feel free to add sections or make other changes here as needed!

Custom Templates

Scope Variables available

You have the following variables on your scope:

  • optionsData - The data provided to configure the field
  • formId - The ID of the form the field is on
  • index - The index of the field the form is on (in ng-repeat)
  • value - The value of the form

Useful options

useNgIfToHide

If you've got performance issues with angular-formly give this option a try. Setting it to true will change fields with a hide=true to be hidden with ng-if instead of ng-hide meaning their watchers will be removed from the digest cycle (which is the leading cause of death for performance on angular pages).

Clone this wiki locally