So I have a attribute directive appGetCurrency in here:
<md-select appGetCurrency [(ngModel)]="value" placeholder="Currency" name="currency">
<md-option *ngFor="let c of currencyList" [value]="c.code">{{c.dsc}}</md-option>
</md-select>
I would like that the appGetCurrency directive to pass some values to the currencyList in order to build the list of options.
EDIT
The appGetCurrency directive just get a list of currencies from a service, then I would like to pass that list to the currencyList variable in the host template:
@Directive({ selector: '[appGetCurrency]' })
export class CurrencyDirective {
currencies;
constructor() {
// build the <md-options> based on 'currencies'
this.currencies = this.service.getCurrencies('asia');
}
}