Skip to content

Instantly share code, notes, and snippets.

@pavei
Created August 30, 2017 22:51
Show Gist options
  • Save pavei/a95d2162d93e663b90a55e594fd7e5e0 to your computer and use it in GitHub Desktop.
Save pavei/a95d2162d93e663b90a55e594fd7e5e0 to your computer and use it in GitHub Desktop.
import { Component, Prop } from '@stencil/core';
@Component({
tag: 'my-first-component',
styleUrl: 'my-first-component.scss'
})
export class MyComponent {
// Indicate that name should be a public property on the component
@Prop() name: string;
render() {
return (
<p>
My name is {this.name}
</p>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment