*REFERENCE

  • function
can.view.bindings.reference  

Export a viewModel into a template's references scope.

*ref-prop

A shorthand for exporting an element's viewModel to the reference scope.

Parameters

  1. ref-prop {String}

    The name of the property to set in the template's 'references' scope.

Use

Export a view model to the references scope by adding an attribute with the hypenated name of the reference scope property:

<year-selector *year-selector />