Skip to content

laurentiustamate94/amplify-deferred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 !!" );
	});

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published