Skip to content

Instantly share code, notes, and snippets.

Last active October 20, 2022 16:32
What would you like to do?
selector: 'wt-greeting',
template: (ctx: WtGreeting) => ngHtml`<h1>Hello ${uppercase(}</h1>`
class WtGreeting {
@Input() name: string;
selector: 'wt-root',
template: (ctx:AppComponent) => ngHtml`
<wt-greeting name="Static Value"></wt-greeting>
<wt-greeting name=${ctx.dynamicValue}></wt-greeting>
class AppComponent {
@Input() dynamicValue = string;
function upperCase(value: string){
return value.toUpperCase();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment