Commit 72aba92c authored by kpandey's avatar kpandey

updated

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174821 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 518de18b
...@@ -5,11 +5,14 @@ import 'rxjs/add/operator/catch'; ...@@ -5,11 +5,14 @@ import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/map'; import 'rxjs/add/operator/map';
import {Store} from '@ngrx/store'; import {Store} from '@ngrx/store';
import { HostUrlService } from '../../host-url.service'; import { HostUrlService } from '../../host-url.service';
import { ItemDetail } from '../../ecm-model/product-detail-model';
@Injectable() @Injectable()
export class EcmCheckoutService { export class EcmCheckoutService {
constructor (private http: Http,public hostUrlService : HostUrlService ) {} constructor (private http: Http,public hostUrlService : HostUrlService ) {}
singleItem: ItemDetail;
sendData(data, _tokenid: string): Observable<any> { sendData(data, _tokenid: string): Observable<any> {
console.log( "inside send data" + JSON.stringify(data)); console.log( "inside send data" + JSON.stringify(data));
let authUrl = '/ecm/service/order'; // URL to web service let authUrl = '/ecm/service/order'; // URL to web service
...@@ -24,6 +27,20 @@ export class EcmCheckoutService { ...@@ -24,6 +27,20 @@ export class EcmCheckoutService {
.map( (res) => this.extractData(res) ); .map( (res) => this.extractData(res) );
} }
setItem(item){
this.singleItem = item;
console.log("the item of set now start",this.singleItem)
}
getItem(){
console.log("the item of get now start",this.singleItem)
return this.singleItem;
}
reset(){
this.singleItem = undefined;
}
private extractData(res: Response) { private extractData(res: Response) {
let body = res.json(); let body = res.json();
console.log('extractData[' + JSON.stringify(body) + ']'); console.log('extractData[' + JSON.stringify(body) + ']');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment