I was originally trying to set up a template reference variable in Angular2 so I could reverse the sort order of a table without having to do the binding but I wasn't getting the dynamic updating of the interface when I was clicking the checkbox. I created a simple plunker in case I had something else in my app that might have been messing with the code and I don't see the interpolated value of the reference being updated on the fly. I made it a textbox to see if the value would change as I typed. It doesn't appear to be updating.
Am I missing something in my setup to make this work? Or am I trying to use the reference variables in a way they weren't created to be used for?
http://plnkr.co/edit/BK4MzU8KTvEyXDxTNHSR?p=preview
import {Component} from '@angular/core'
@Component({
selector: 'my-app',
providers: [],
template: `
<div>
<h2>Hello {{name}}</h2>
<input #myInput type="text" value="yeh" /> The INPUT value is "{{myInput.value}}"
</div>
`,
directives: []
})
export class App {
constructor() {
this.name = 'Angular2 (Release Candidate!)'
}
}