Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 4b86e23

Browse files
committed
use Vue.http instead of $http
1 parent 3a32746 commit 4b86e23

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

resources/assets/js/services.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ var Services = new Vue({
3737
this.features = [];
3838

3939
// fetch the features of the service
40-
this.$http.get('services/'+service.slug+'/features').then(
40+
Vue.http.get('services/'+service.slug+'/features').then(
4141
// success
4242
function (response) {
43-
console.log('features:', response.json());
44-
this.$set('features', response.json()[service.name]);
45-
},
43+
this.features = response.json()[service.name];
44+
}.bind(this),
4645
// error
4746
function (response) {
4847
console.log('Error!', response.status);

0 commit comments

Comments
 (0)