Answer the question
In order to leave comments, you need to log in
How to target a simple element to a tag with a class and not a template?
Well, let's take a simple component
<template lang="jade">
div
p {{ greeting }} World!
OtherComponent
</template>
<script>
import OtherComponent from './OtherComponent.vue'
export default {
components: {
OtherComponent
},
data () {
return {
greeting: 'Hello'
}
}
}
</script>
<style lang="stylus" scoped>
p
font-size 2em
text-align center
</style>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question