In angular, if i have an object such as :
[{
id : 1,
subject : BIO,
class : '101' ,
time : 'mon'
},
{
id : 2,
subject : BIO,
class : '101',
time : 'tues'
},
{
id : 3,
subject : MTH,
class : '101-00',
time : 'wed'
},
{
id : 4,
subject : MTH,
class : '101',
time : 'tues'
},
{
id : 5,
subject : BIO,
class : '102',
time : 'sat'
},
And I wanted to display all of the results underneath each subject title, is there a directive I can use or something I need to whip up?
Is there way to output based on key value pair by category?
so my output would be
BIO
All class numbers and time.
MTH
All math classes.