Permalink
Browse files

Component Oluşturma

Component oluşturuldu ve içerisine dinamik değer gönderildi
  • Loading branch information...
erselgulyaz committed Mar 18, 2018
1 parent bdef553 commit c7d4b167fd0bce8173b84d0f4d6a0d69bf4b5477
Showing with 22 additions and 6 deletions.
  1. +6 −6 src/App.vue
  2. +16 −0 src/components/BasicComponent.vue
@@ -1,18 +1,18 @@
<template>
<div id="app">
{{message}}
<basic-component customText="deneme" />
</div>
</template>
<script>
import BasicComponent from './components/BasicComponent.vue'
export default {
data () {
return {
message: 'Hello World!'
}
components: {
BasicComponent
}
}
</script>
<style lang="scss">
<style lang="scss" scoped>
</style>
@@ -0,0 +1,16 @@
<template>
<div>
<p>{{customText}}</p>
</div>
</template>
<script>
export default {
props: {
customText: { type: String, required: true }
}
}
</script>
<style scoped>
</style>

0 comments on commit c7d4b16

Please sign in to comment.