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
useModaloption has been deprecated and removed (#23)SelectSearchableclass has been renamed toSelectSearchableComponent(Angular 2 style guide)SelectSearchablePageclass has been renamed toSelectSearchablePageComponent(Angular 2 style guide)titleoption has been replaced with selectSearchableLabelTemplate template:
Old
<select-searchable
title="port">
</select-searchable>
New
<select-searchable>
<ng-template selectSearchableLabelTemplate>
Port
</ng-template>
</select-searchable>
itemTemplateoption has been replaced with selectSearchableItemTemplate template:
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>