Skip to content

Instantly share code, notes, and snippets.

@synga
Last active August 13, 2018 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synga/805419c1472b29504fd6c6dddada6602 to your computer and use it in GitHub Desktop.
Save synga/805419c1472b29504fd6c6dddada6602 to your computer and use it in GitHub Desktop.
import { Component, Prop } from '@stencil/core';
@Component({
tag: 'my-component',
styleUrl: 'my-component.css'
})
export class MyComponent {
@Prop() first: string;
@Prop() last: string;
render() {
return (
<div>
Hello, my name is {this.first} {this.last}
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment