npm.io
0.0.7 • Published 10 years ago

ember-cli-uncharted-ajax

Licence
MIT
Version
0.0.7
Deps
0
Vulns
0
Weekly
0

UnchartedCode Ajax Build Status

This is an extremely simple wrapper around jQuery's ajax method which makes working testing an Ember environment easier. Comparable to ic-ajax however they didn't give access to jqXHR at the time of this projects creation.

Installation

Include the library as a dependency from within an ember-cli application.

ember install:addon ember-cli-uncharted-ajax

Usage

Import into your project

import UnchartedAjax from 'uncharted-ajax';

and then use it in your code.

// Url only, defaults to GET
UnchartedAjax("https://api.somedomain.com/users")

// Url and Options
UnchartedAjax("https://api.somedomain.com/user", {
  method: "POST"
})

// Options all the way
UnchartedAjax({
  url: "https://api.somedomain.com/user",
  method: "POST"
})

Development

Installation
  • git clone this repository
  • npm install
  • bower install
Running
Running Tests
  • ember test
  • ember test --server
Building
  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Keywords