[Vuejs]-How do I pass data to the key and link of a link element?

0👍 ✅ The answer above is right. You have to remmeber, that every property that written as usual <component link="some-link/object.id"></component> will not be parsed, but will be passed as string. So you have to use :link="’/bla/bla/’+object.id". lowerBoss will be available inside f7 component as "data", because of :data="lowerBoss" this part of your tag. Check this … Read more

[Vuejs]-Vue – v-for attaching computed props

0👍 Problem was I was trying to use computed props but this worked where task1Complete() and task2Complete() are regular methods. tasks: [ { title: ‘title1’, description: ‘task 1 description’, complete: this.task1Complete() }, { title: ‘title2’, description: ‘this is another description’, complete: this.task2Complete() } ] }; The v-for <div v-for=”(task, index) in tasks” :key=”index” :class=”{‘is-complete’: task.complete}” … Read more

[Vuejs]-Vue / Vuetify: get dimensions of v-flex

0👍 Your code in the demo is incorrect, you’re saving the onResize() results into this.windowSize, but you’re referencing mx and my in the template. <template> <v-app> <v-container dark grid-list-md text-xs-center> <v-layout row wrap> <v-flex xs12 v-resize=”onResize”> <v-card color=”primary”> <svg></svg> </v-card> </v-flex> </v-layout> mounted x: {{ windowSize.x }} mounted y: {{ windowSize.y }} </v-container> </v-app> </template> … Read more

[Vuejs]-AJAX Search with Laravel and Vue empty Results

0👍 ✅ I GOT IT 🙂 Controller: public function search(Request $request) { $files = DB::table(‘files’)->where(‘name’, ‘like’, ‘%’ . $request->get(‘keywords’) . ‘%’)->get(); return response()->json($files); } Route: Route::get(‘/search’, ‘SearchController@search’); Vue: <template> <div> <input type=”text” v-model=”keywords”> <ul v-if=”results.length > 0″> <li v-for=”result in results” :key=”result.id”>{{ result.name }}</li> </ul> </div> </template> <script> export default { data() { return { … Read more