What could be causing my {{ expression }} to malfunction?
I have exhausted all options, yet the web browser fails to recognize this {{ expression }} or properly bind it using ng-bind. Instead, it either displays the {{ expression }} as is or not at all. Can anyone offer assistance?
I am currently working on VS code and have disabled certain plugins in an attempt to resolve unnecessary errors. However, the issue persists on both Chrome and Safari.
HTML File:
<div class="form-label"><strong>For:</strong>
{{ query }}
</div>
TS File:
export class AppComponent {
query: string;
constructor() {
this.query = "Name";
}
}
Expected Output:
(Browser Display)
Name
Actual Output:
(Browser Display)
{{ query }}