title: Nativescript get properties from child element in ng-repeat
body: <p>I've got a dynamically generated checklist in Angular/Nativescript like so:</p>
  
  <pre><code>&lt;StackLayout *ngIf="assessment"&gt;
           &lt;StackLayout *ngFor="let instance_item of assessment.exam_instance_items; let i= index"&gt;
                 &lt;ns-examitem [attr.id]="'item_'+instance_item.id" [assessmentitem]="instance_item"
                    (changeEvent)="validateExam($event)"&gt;&lt;/ns-examitem&gt;
            &lt;/StackLayout&gt;
  &lt;/StackLayout&gt;
  </code></pre>
  
  <p>where the examitem has a radio button control bound to a value</p>
  
  <p>(in examitem.component.ts- the child component)</p>
  
  <pre><code>// get the values out
     public selectedvalue: string = '';
  
     // tell the world something's changed, trigger validation
    @Output() changeEvent = new EventEmitter();
  
    changeCheckedRadio(radioOption: RadioOption): void {
      // uncheck all other options
      this.radioOptions.forEach(option =&gt; {
        if (option.value !== radioOption.value) {
          option.selected = false;
        } else {
          option.selected = true;
          this.selectedvalue = option.value;
          this.assessmentitem.selectedValue = this.selectedvalue;
        }
      });
      // tell the world the value has changed
      console.log('ExamitemComponent.Radio option changed to:' + this.selectedvalue)
      this.changeEvent.emit();
    }
  </code></pre>
  
  <p>I'm really struggling getting the selectedvalue out of the examitem components in the parent component. I can get the component reference by ID, but can't read the value.</p>
  
  <p>Anyone able to help?</p>