File

src/app/modules/core/services/channel/channel.service.ts

Index

Methods

Constructor

constructor(configService: ConfigService, publicDataService: PublicDataService)
Parameters :
Name Type Optional
configService ConfigService No
publicDataService PublicDataService No

Methods

getFrameWork
getFrameWork(hashTagId)
Parameters :
Name Optional
hashTagId No
Returns : any
import { Injectable } from '@angular/core';
import { ConfigService } from '@sunbird/shared';
import { PublicDataService } from './../public-data/public-data.service';
@Injectable({
  providedIn: 'root'
})
export class ChannelService {

  constructor(private configService: ConfigService, private publicDataService: PublicDataService) { }
  getFrameWork(hashTagId) {
    const channelOptions = {
      url: this.configService.urlConFig.URLS.CHANNEL.READ + '/' + hashTagId
    };
    return this.publicDataService.get(channelOptions);
  }
}

results matching ""

    No results matching ""