Skip to content

Instantly share code, notes, and snippets.

@samwx
Created August 3, 2019 04:40
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 samwx/1b23a4987fecc44535688a4694d700cc to your computer and use it in GitHub Desktop.
Save samwx/1b23a4987fecc44535688a4694d700cc to your computer and use it in GitHub Desktop.
application-choices-criterias
Vue.component('my-component', {
props: ['title', 'body'],
template: '<h1>Hello World</h1>'
})
/**
* <my-component></my-component>
**/
export const MyComponent = props => <h1>Hello World</h1>
/**
* <MyComponent />
**/
@Component({
selector: 'my-component',
template: '<h1>Hello World</h1>'
})
export class MyComponentComponent {
@Input() title: string;
@Input() body: string;
}
/**
* <my-component></my-component>
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment