mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
Fix(demo): Update search list items to have more selections. Add inset to list to avoid the weird bordering look
This commit is contained in:
@ -6,7 +6,7 @@ import {SearchPipe} from 'ionic/components/search-bar/search-bar';
|
||||
|
||||
|
||||
function randomTitle() {
|
||||
var items = ['Pizza', 'Pumpkin', 'Apple', 'Bologna'];
|
||||
var items = ['Soylent', 'Pizza', 'Pumpkin', 'Apple', 'Bologna', 'Turkey', 'Kabob', 'Salad', 'Fruit bowl', 'Fish Tacos', 'Chimichongas', 'Meatloaf'];
|
||||
return items[Math.floor(Math.random() * items.length)];
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<ion-search-bar ng-control="searchQuery"></ion-search-bar>
|
||||
|
||||
<ion-list #list>
|
||||
<ion-list inset #list>
|
||||
|
||||
<ion-item *ng-for="#item of getItems()"><!--items | search:form.controls.searchControl.value">-->
|
||||
{{item.title}}
|
||||
|
Reference in New Issue
Block a user