Skip to main content
Knowledge mapHow do src, bind and propBind differ?ArcBlock

You are here. See how this question connects to other ideas.

Select a node to open its page · Expand to read within the map

Knowledge mapFollow a connection. Understand a question.
← AFS and interfaces

One question

How do src, bind and propBind differ?

Reading resources, writing input and updating properties are distinct connections.

One view displays a task title; another lets a person edit it. Both refer to a resource, but they require different operations.

FieldResponsibilityQuestion to ask
srcRead-only data connectionHow does this node interpret the resource?
bindRead–write input connectionWhere does an edited value go?
propBindServer-managed resource-to-property connectionWhich property follows the resource?

Use all three connections in one task application:

  • A task list uses src to read tasks and show their titles and status.
  • A title input uses bind to read a title and write an edited value back.
  • The list also has a property—an interface setting—for how to sort. propBind can make that setting follow a resource containing the user’s sorting preference.

For example, the teaching mapping {"sort.field":"/example/preferences/task-sort"} reads the resource value into the sort.field property. If the value changes from title to status, the runtime sends the new property value to the renderer. This changes a list setting, not a task title. An application must still provide the example resource and nodes that support these fields.

These are distinct node contracts, not a promise that every node and renderer supports all three identically. A list and a media node can interpret source data differently.

Bindings do not bypass authorization. A visible input does not grant its caller permission to write the underlying resource.

Further reading

Technical documentation: read the full reference.

Check your understanding

Which field should you examine to make a sort property follow a resource?

propBind, subject to support in the target runtime.

Continue along a learning path