I\'m have a problem fetching the properties of an object which has been selected from a select list in Angular 2 (RC1). Take the following syntax:
As far as I can see, there's still an issue with two-way binding to a select. So try this:
Template
Component Class
setPlan(value) {
//if you're on older versions of ES, use for-in instead
var plan = this.plans.find(p => p.name = value);
if(plan) { this.model.plan = plan; }
}
Couldn't try it, for some reason plunkr has never worked for me.