vue resource promise callback
<p>Id like to parse a vue resource data and send callback request depending on the data i receive from server , how would i achive this either using <code>Vue.interceptors</code> or <code>.then</code> callback :</p>

<pre><code>methods : function(){
var resource = this.$resource('index');
resource.save({name: 'jimmy'}).then(function (response) {
    //success callback
    //resend request lets say if response.data == 'test'

}, function (response) {
   // error callback
   console.log(response)
});
}
</code></pre>