In angular 2, it possible to set values within the html view of a component like this? It's already rendered in PHP:
//html page:
<dropdown [(options)]="['Available', 'Busy', 'Away', 'Offline']"></dropdown>
I have never seen this done anywhere online, so I assume it can't be done. But is there a workaround? For example if I had 100 dropdown
components on the page with their own options
model, I'd potentially have to make 100 requests to the server if doing it the angular way.
Thoughts?