Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component } from '@angular/core';
- import { SalesforceService } from './services/salesforce.service';
- @Component({
- selector: 'app-home',
- templateUrl: './home.component.html',
- styleUrls: ['./home.component.scss']
- })
- export class HomeComponent{
- constructor(
- private sfService: SalesforceService
- ) {
- this.sfService.callRemote('SomeController.RemouteActionMethod',
- [JSON.stringify(param_1),JSON.stringify(param_N)], this.successCallback, this.failedCallback);
- }
- public getSFResource = (path: string) => this.sfService.getSFResource(path);
- private successCallback = (response) => {
- console.log(response)
- }
- private failedCallback = (response: any) => {
- console.log(response)
- }
- }
Add Comment
Please, Sign In to add comment