In my .ts file, I have an array of company details.
In my HTML, I'm then using ngFor to display these companies using the following code:
{{ company.companyName }}
Industry: {{ company.industry }} Share Price: {{ company.sharePrice }} Rating: {{ company.starRating }}
Last updated 3 mins ago
This displays the companies on my page, but they are all in one row.
For example, if I have 3 companies, they are all in the same row. If I have 10 companies, they all stay on the same row.
What changes do I need to make so that there is only max 3 companies on one row of cards?

Puneet KankarRank #446 · 5.6K reputationPosted Feb 23, 2019, 6:58 AM EST
Vivek KumarRank #272 · 9.3K reputationPosted Feb 23, 2019, 7:49 AM EST