Guest User

Untitled

a guest
May 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. import { Component } from '@angular/core';
  2. import { SalesforceService } from './services/salesforce.service';
  3. @Component({
  4. selector: 'app-home',
  5. templateUrl: './home.component.html',
  6. styleUrls: ['./home.component.scss']
  7. })
  8. export class HomeComponent{
  9. constructor(
  10. private sfService: SalesforceService
  11. ) {
  12. this.sfService.callRemote('SomeController.RemouteActionMethod',
  13. [JSON.stringify(param_1),JSON.stringify(param_N)], this.successCallback, this.failedCallback);
  14. }
  15. public getSFResource = (path: string) => this.sfService.getSFResource(path);
  16. private successCallback = (response) => {
  17. console.log(response)
  18. }
  19. private failedCallback = (response: any) => {
  20. console.log(response)
  21. }
  22. }
Add Comment
Please, Sign In to add comment