Created
August 3, 2019 04:40
-
-
Save samwx/1b23a4987fecc44535688a4694d700cc to your computer and use it in GitHub Desktop.
application-choices-criterias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.component('my-component', { | |
props: ['title', 'body'], | |
template: '<h1>Hello World</h1>' | |
}) | |
/** | |
* <my-component></my-component> | |
**/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const MyComponent = props => <h1>Hello World</h1> | |
/** | |
* <MyComponent /> | |
**/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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