This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assigns an ASP.Net MVC-style name attribute to a form field that is part of a list. | |
// Used inside a foreach: binding. | |
// Example for an indexed primitive type (string, int, etc.) : | |
// <div data-bind="foreach: Items"> | |
// <input type="text" data-bind="value: SomeValue, aspnetIndexedName: 'Items'" /> | |
// </div> | |
// | |
// The above will name the input fields "Items[0]", "Items[1]", etc. For a complex type, | |
// a property can be specified in addition to the name: | |
// <div data-bind="foreach: Items"> |