Struggling to display just the name from the request
object in my form using JavaScript. I'm new to working with JS and need some guidance.
I attempted to use {{ request.name }}
, but it's not functioning as expected. When I tried {{request}}
, it displayed all the data instead of just the name.
const app = new Vue({
el:'#valuation-request',
data() {
return {
step:1,
request:{
name:null,
industry:'{{ $company->industry }}',
valuation_date:null,
similar_comp:null,
total_raised:null,
sales_transactions:null
}
}
},
methods:{
prev() {
this.step--;
},
next() {
this.step++;
}
}
});