The umb-property directive can along with umb-property-editor be used for rendering property editors in the backoffice.
The two directives are typically used together. For instance, if your Angular model has an array of properties, your view could look something like:
Properties
contains the model for each property. ng-repeat
can be used to iterate over each property, passing them to the two directives via property
and model
attributes.
For a basic property with a textbox, the model for the property can be defined as:
The view
property specifies the URL to the property editor that should be used for this property. To use one of the built-in property editors in Umbraco, you can specify the alias (eg. textbox
) rather than the full URL to the view (eg. /umbraco/Views/propertyeditors/textbox/textbox.html
).
You can see a list of all the built-in property editors in the propertyeditors folder on GitHub.