This is an Angular2 app, and the component is simplified here as:
@Component({
selector: 'courses',
template: `
<input [(ngModel)]="wahla">
<input [(ngModel)]="wahla">
{{ wahla }}
`
})
export class CoursesComponent {
wahla = "hmm hmm ha ha";
}
I think the app works fine in one page with the two-way binding, but if I open up another tab with http://localhost:3000/ and then paste something or type something in the first page's first input box, then the second tab actually gets updated for its first input box, while the 2nd input box and the static text do not update.
For the first tab, everything is updated as expected.
Is this supposed to happen or what might be wrong? This is running using npm start
which is running a lite-server with BrowserSync.