Comparing version 0.2.4 to 0.2.5
{ | ||
"name": "ng2-api", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Angular2 API services", | ||
@@ -27,2 +27,9 @@ "main": "src/ng2-api.js", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tb/ng2-api" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/tb/ng2-api/issues" | ||
}, | ||
"devDependencies": { | ||
@@ -29,0 +36,0 @@ "@angular/common": "^2.0.0-rc.0", |
# ng2-api | ||
Angular2 API services - work in progress | ||
Angular2 API services, see [ng2-api-examples](https://github.com/tb/ng2-api-examples) | ||
@@ -15,4 +15,4 @@ ## Install | ||
import {Inject, Injectable} from '@angular/core'; | ||
import {Http, Response} from '@angular/http'; | ||
import {Injectable} from '@angular/core'; | ||
import {Http} from '@angular/http'; | ||
import {ApiService} from 'ng2-api'; | ||
@@ -29,8 +29,4 @@ | ||
constructor(public http: Http) { | ||
super(http, 'http://jsonplaceholder.typicode.com', 'posts'); | ||
super(http, 'http://localhost:8081', 'posts'); | ||
} | ||
serialize(model: Post): string { | ||
return JSON.stringify({post: model}); | ||
} | ||
} | ||
@@ -37,0 +33,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
13371
1
0
49