Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-api

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-api - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

9

package.json
{
"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",

12

README.md
# 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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc