title: Action Link in Knockout foreach data binding
body: <p>I'm trying to bind data to Action Link within Knockoutjs <code>foreach</code> loop. This code works fine</p>
  
  <pre><code>&lt;ul data-bind="foreach: ItemList"&gt;
      &lt;li&gt;
          &lt;a data-bind="attr: { 'href': '@Url.Action("Items", "ItemController")' }" &gt;
                LinkText
           &lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>But I also need to bind a parameter and bind the LinkText with knockoutjs. I tried different code samples but nothing seems to work.</p>
  
  <p>Final code should be something like,</p>
  
  <pre><code>&lt;ul data-bind="foreach: ItemList"&gt;
      &lt;li&gt;
          &lt;a data-bind="attr: { 'href': '@Url.Action("Items", "ItemController")', new { id = DataBindId)' }" &gt;
                DataBindName
           &lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>How can I make this work?</p>