new DecorateInteraction()
Provides a function that adds an "active" property (using
Object.defineProperty
) to an interaction, making it possible to use ngModel
to activate/deactivate interactions.
Example:
<input type="checkbox" ngModel="interaction.active" />
See our live example: ../examples/interactiontoggle.html