I have started working on angular2 recently.So want to know the right approach for the use-case. I have an array of Objects like this :
users : Array<Object> = [{
id: 1,
tags: [{
name: 'foo',
age: 21
}, {
name: 'aaa',
age: 23
}]
}, {
id: 2,
tags: [{
name: 'ball',
age: 53
}, {
name: 'ttt',
age: 43
}]
}, {
id: 3,
tags: [{
name: 'bar',
age: 32
}, {
name: 'fsf',
age: 11
}]
}]
I need to display this data as a table and give a search option on it. Data needs to be filtered on the basis of the text entered by a user in the search field. The data entered in the search can match any of the values in this object. I am using angular2 rc4.
I need help in implementing this search and the way I should approach it. I am also using lodash. Is there any way I can utilise its functions. ( without using jquery )