Here is some Angular 2 code snippet:
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: 'Waiting on port ',
})
export class AppComponent {
}
I want to dynamically add the text "3000" to the template output. How can I achieve this?
The desired final output should be "Waiting on port 3000"
UPDATE: To clarify, I am looking for a solution that involves modifying the HTML before it is rendered on the frontend. Essentially, I need to manipulate the HTML after Angular 2 has processed all the binding details in the template.