From ea8b67fda3296c990be28d1c353a0ee3ecb852a2 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 2 Jul 2019 14:45:46 +0300 Subject: [PATCH] Source code for templating demo --- .../datatable/DataTableTemplatingDemo.vue | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/src/views/datatable/DataTableTemplatingDemo.vue b/src/views/datatable/DataTableTemplatingDemo.vue index cc5733d05..db379c6c6 100644 --- a/src/views/datatable/DataTableTemplatingDemo.vue +++ b/src/views/datatable/DataTableTemplatingDemo.vue @@ -39,6 +39,68 @@ + +
+ + + + View on GitHub + + + + + + +import CarService from '../../service/CarService'; + +export default { + data() { + return { + cars: null + } + }, + carService: null, + created() { + this.carService = new CarService(); + }, + mounted() { + this.carService.getCarsSmall().then(data => this.cars = data); + } +} + + + + +