This app is used to search for records within a table
- Ember.js v2.18 or above
- Ember CLI v2.13 or above
The search
helper can filter simple arrays:
// controller.js
export default Ember.Controller.extend({
fruits: ['Apple', 'Banana', 'Orange']
query: 'Oran'
});
And arrays of objects:
// controller.js
export default Ember.Controller.extend({
fruits: [
{
name: 'Apple',
opinion: 'Meh'
},
{
name: 'Orange',
opinion: 'Yay'
},
{
name: 'Banana',
opinion: 'Nay'
}
],
searchProperties: ['name', 'opinion'],
query: 'ay'
});
For more information on using ember-cli, visit https://ember-cli.com/.