
ctrl+k
Enter a search term above to see results...
Enter a search term above to see results...
Object helpers provide utilities for working with objects in templates.
Converts an object to an array for use with {#each}
.
{#each arrayFromObject objectToConvert} {key}: {value}{/each}
Name | Type | Description |
---|---|---|
obj | object | The object to convert |
array
- An array of key-value pair objects.
<dl> {#each arrayFromObject user} <dt>{key}</dt> <dd>{value}</dd> {/each}</dl>
Can be used to pass arbitrary data as an object to other functions.
{someFunction (object key=valueForKey)}
Name | Type | Description |
---|---|---|
obj | object | The object to create |
object
- The created object.
<ui-dropdown options="{object placeholder='Select a country' selection=true options=countries}"></ui-dropdown>