Closed Jacknq closed 7 years ago
<div ref="title" class="col-6"> {{ new Date(rec.DateCreated)| <a href=""> author</a> </div> .. // $refs: { // title: HTMLDivElement // } @Lifecycle mounted() { this.getData(); alert(this.$refs["title"] ); //this.$refs.title }
gets undefined, but why?
sorry, it was inside v-if, data came afterwards, it didnt existed yet.
gets undefined, but why?