amplify-deferred
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/amplify-deferred package

0.0.6 • Public • Published

amplify-deferred

Adding jQuery Deferred support to the amplify.request component as a Node.js module

All credit for the jQuery plugin goes to elijahmanor.

In order to install it just do: npm install amplify-deferred --save

Once you have included this plugin a promise will be returned allowing you to use $.when, .done(), .fail(), and the other various jQuery Deferred methods.

amplify.request( "/api/Account/Login", { userName: "laurentiu", password: "|\/|y s3cr3t!!" } )
	.done(function( data, status ) {
        console.log( data );
        console.log( status );
	}).fail(function( data, status ) {
		console.log( "Something went wrong !!" );
	});

Package Sidebar

Install

npm i amplify-deferred

Weekly Downloads

5

Version

0.0.6

License

MIT

Last publish

Collaborators

  • laurentiu-stamate