title: Parser Error: Unexpected end of expression: {{value?}} | Angular 2 Typescript
body: <p>I'm running into trouble with showing the variable that is initialised asynchronously. I added the <code>?</code> in the template to catch the error that it would be undefined but it says the expression end unexpected.</p>
  
  <pre><code>@Component({
    template: `&lt;div&gt;{{value?}}&lt;/div&gt;`
  })
  
  export class Component implements OnInit {
      value: number;
  
      constructor(private _service: Service) { }
  
      getValue() {
          this._service.getValue().subscribe(data =&gt; this.value = data);
      }
  
  
      ngOnInit() {
          this.getValue();
      }
  }
  </code></pre>