Answer the question
In order to leave comments, you need to log in
Is it correct to include third-party scripts in App.vue using Vue CLI?
I just had an interview, there was a question regarding my test task.
The App.vue root component had the following picture:
<script src="./assets/bootstrap/js/bootstrap.min.js"></script>
<script>
Date.prototype.yyyymmdd = function() {
var mm = this.getMonth() + 1
var dd = this.getDate()
return [this.getFullYear(),
( mm > 9 ? '' : '0' ) + mm,
( dd > 9 ? '' : '0' ) + dd
].join('')
}
export default {
data() {
return {
menuShow: false,
linkMenu: [
{ title: 'Home', url: '/' },
{ title: 'All Tasks', url: '/tasks' }
]
}
}
}
</script>
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