I have below angular 2 code
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: 'Waiting on port ',
})
export class AppComponent {
}
As an example I would like to append text "3000" to the template output dynamically. How can this be achieved?
So, final output must be "Waiting on port 3000"
EDIT: I should have been a bit more specific. I was expecting answer something like a response object where I could modify the html before it is sent to "frontend" rendering. So, Angular 2 would process binding all the details in the template and then I get the modify the html.