Skip to content

2.0.0

Compare
Choose a tag to compare
@eakoriakin eakoriakin released this 16 Sep 18:18

Updates

This release provides an ability to create complex templates for items, value and label easily using <ng-template>. It also includes other minor features.

Breaking changes

Old

<select-searchable
    title="port">
</select-searchable>

New

<select-searchable>
    <ng-template selectSearchableLabelTemplate>
        Port
    </ng-template>
</select-searchable>

Old

<select-searchable
    [itemTemplate]="portItemTemplate">
</select-searchable>

portItemTemplate(port: Port) {
    return `${port.name} (${port.country})`;
}

New

<select-searchable>
    <ng-template selectSearchableItemTemplate let-port="item">
        {{port.name}} ({{port.country}})
    </ng-template>
</select-searchable>

Features