Is there a way to dynamically display the values of an array based on a matching string in Angular 4 or 6?
Let's say we have two arrays, A and B:
A = ['aaa','arrr','aeee','aqqqq','awwww','axxxx','azzz'];
B = ['cc','sss'];
If the function returns the string A, I want to be able to list out the values of array A in the template. The same should apply if the function returns B.