Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# angular2-rest
Angular2 HTTP client to consume RESTful services. Built on angular2/http with TypeScript.
Angular2 HTTP client to consume RESTful services. Built on @angular/http with TypeScript.
**Note:** this solutions is not production ready, it's in a very basic alpha state. Any ideas or contributions are very welcomed :)

## Installation
Expand All @@ -12,7 +12,7 @@ npm install angular2-rest

```ts

import {Request, Response} from 'angular2/http';
import {Request, Response} from '@angular/http';
import {RESTClient, GET, PUT, POST, DELETE, BaseUrl, Headers, DefaultHeaders, Path, Body, Query} from 'angular2-rest';

import {Todo} from './models/Todo';
Expand Down
2 changes: 1 addition & 1 deletion angular2-rest.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Http, Request } from "angular2/http";
import { Http, Request } from "@angular/http";
import { Observable } from "rxjs/Observable";
/**
* Angular 2 RESTClient class.
Expand Down
34 changes: 14 additions & 20 deletions angular2-rest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion angular2-rest.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions angular2-rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Table of Contents:
@Body
*/

import {Inject} from "angular2/core";
import {Inject} from "@angular/core";
import {
Http, Headers as AngularHeaders,
Request, RequestOptions, RequestMethod as RequestMethods,
Response,
URLSearchParams
} from "angular2/http";
} from "@angular/http";
import {Observable} from "rxjs/Observable";

/**
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ <h1> angular2-rest</h1>
<div class="col-8 col-content">
<div class="tsd-panel tsd-typography">
<h1 id="angular2-rest">angular2-rest</h1>
<p>Angular2 HTTP client to consume RESTful services. Built on angular2/http with TypeScript.<br><strong>Note:</strong> this solutions is not production ready, it&#39;s in a very basic alpha state. Any ideas or contributions are very welcomed :)</p>
<p>Angular2 HTTP client to consume RESTful services. Built on @angular/http with TypeScript.<br><strong>Note:</strong> this solutions is not production ready, it&#39;s in a very basic alpha state. Any ideas or contributions are very welcomed :)</p>
<h2 id="installation">Installation</h2>
<pre><code class="lang-sh">npm install angular2-rest
</code></pre>
<h2 id="example">Example</h2>
<pre><code class="lang-ts">
<span class="hljs-keyword">import</span> {Request, Response} from <span class="hljs-string">'angular2/http'</span>;
<span class="hljs-keyword">import</span> {Request, Response} from <span class="hljs-string">'@angular/http'</span>;
<span class="hljs-keyword">import</span> {RESTClient, GET, PUT, POST, DELETE, BaseUrl, Headers, DefaultHeaders, Path, Body, Query} from <span class="hljs-string">'angular2-rest'</span>;

<span class="hljs-keyword">import</span> {Todo} from <span class="hljs-string">'./models/Todo'</span>;
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@
},
"homepage": "https://github.com/Paldom/angular2-rest#readme",
"dependencies": {
"angular2": "^2.0.0-beta.7",
"@angular/core": "2.0.0-rc.4",
"@angular/http": "2.0.0-rc.4",
"es6-promise": "^3.0.2",
"es6-shim": "^0.33.13",
"reflect-metadata": "^0.1.2",
"rxjs": "^5.0.0-beta.0",
"zone.js": "^0.5.10"
"rxjs": "^5.0.0-beta.6",
"zone.js": "^0.6.12"
},
"devDependencies": {
"gulp": "^3.9.0",
Expand Down