Let's say I have a simple Angular Component:
@Component({
selector: 'app-email-content',
template: '<h1>Welcome !</h1>'
})
export class WelcomeEmailComponent {
@Input() username: string
}
My goal is to take this Angular component and render it to plain HTML with Node.Js, to send customized EMails.
I know that Server-side rendering is definitely possible with Angular Universal. But I am not sure how to explicitly render one specific component.
from How to Render an Angular Component to HTML in Node.Js (To Send EMails)
No comments:
Post a Comment