rovan-a of Pixel's Programmer
3/7/2017 - 3:17 AM

axios Snippets

axios Snippets

<snippet>
	<content><![CDATA[
axios.post(${1:'/user'}, {
		${2:firstName: 'Fred'}
	})
	.then(function (response) {
		console.log(response);
	})
	.catch(function (error) {
		console.log(error);
	});
]]></content>
	<tabTrigger>axp</tabTrigger>
	<scope>source.js</scope>
</snippet>
<snippet>
	<content><![CDATA[
axios.get(${1:'/user'}, {
		params: {
			${2:id:123}
		}
	})
	.then(function (response) {
		console.log(response);
	})
	.catch(function (error) {
		console.log(error);
	});
]]></content>
	<tabTrigger>axg</tabTrigger>
	<scope>source.js</scope>
</snippet>
<snippet>
	<content><![CDATA[
axios.get(${1:'/user?ID=12345'})
	.then(function (response) {
		console.log(response);
	})
	.catch(function (error) {
		console.log(error);
	});
]]></content>
	<tabTrigger>ax</tabTrigger>
	<scope>source.js</scope>
</snippet>