title: Does Durandal have a native way to trigger an event on a specific instance of a module?
body: <p>I have a complex situation involving several instances of a couple different modules.</p>
  
  <p>For example, I have an input module, form module, and a formSelector module. Selecting a form on the formSelector should populate the form with the correct inputs.</p>
  
  <p>Above the formSelector, I have another form with various inputs. </p>
  
  <p>All the inputs are built out according to what is returned from the database.</p>
  
  <p>Now, I tried using pub/sub to trigger an event to pass the form object from the formSelector to the form module. This works accept that the trigger isn't specific to the form module instance. It triggers the event for all of the forms on the page.</p>
  
  <p>How can I trigger an event only for the specific form instance?</p>
  
  <p><strong>Example</strong></p>
  
  <p><strong>Note:</strong> I made this up on the spot just for a reference for the structure. This code probably does not work. Also, I don't think the javascript is necessary to answer the question.</p>
  
  <p>Input: Observes some data</p>
  
  <pre><code>&lt;input data-bind="value: input.data" /&gt;
  </code></pre>
  
  <p>Form: List of Input Modules</p>
  
  <pre><code>&lt;form&gt;
      &lt;div data-bind="foreach: form.inputs"&gt;
          &lt;div data-bind="compose: { model: input.modelPath, activationData: input.activationData }"&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>FormSelector: Select the desired form</p>
  
  <pre><code>//List of buttons to select the desired form
  &lt;div data-bind="foreach: forms"&gt;
      &lt;div data-bind="click: updateForm"&gt;&lt;/div&gt;
  &lt;/div&gt;
  //The desired Form (Module)
  &lt;div data-bind="compose: { model: form.modelPath, activationData: form.activationData }"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Index.html</p>
  
  <pre><code>//Form Module
  &lt;div data-bind="compose: { model: mainForm.modelPath, activationData: mainForm.activationData }"&gt;&lt;/div&gt;
  //FormSelector Module
  &lt;div data-bind="compose: { model: formSelector.modelPath, activationData: formSelector.activationData }"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Using the example, I want to trigger an event, inside <code>updateForm</code>, which will only trigger for the form composed inside the FormSelector. The problem is, the app wide triggers will update the form above it (the <code>mainForm</code>).</p>