Here is the code snippet I am working with:
import {Component} from "@angular/core";
@Component({
selector: 'my-app',
template: `
<h1>{{title}}</h1>
<h2>{{secondTitle}}</h2>
<main-page></main-page>
`
})
export class AppComponent {
title = 'Lovely Jubbly';
secondTitle: 'Bummer...'
}
The issue I am facing is that while the title 'Lovely Jubbly' appears on my site, the secondTitle 'Bummer...' is not displaying. The only difference between the two variables is how they are initialized. As a newcomer to TypeScript and Angular2, I may be missing something obvious. Can someone point me in the right direction or recommend some documentation to help explain this behavior?