ngx-formly
                                
                                 ngx-formly copied to clipboard
                                
                                    ngx-formly copied to clipboard
                            
                            
                            
                        initializer function of properties (dynamic props)
this is very similar to expressions, but instead of separating expressions apart from the original property, use dynamic props directly with each prop
// pseudo code
fields = [{
  key: "city",
  required: field => (field, model) => model.country!== null
}]