File

src/app/collection-detail-etb/textbook-toc-service.ts

Index

Properties
Methods

Constructor

constructor()

Methods

resetTextbookIds
resetTextbookIds()
Returns : void
setTextbookIds
setTextbookIds(textbookIds)
Parameters :
Name Optional
textbookIds No
Returns : void

Properties

textbookIds
Type : object
Default value : { contentId: undefined, rootUnitId: undefined, unit: undefined, content: undefined }
import { Injectable } from '@angular/core';

@Injectable()
export class TextbookTocService {

    textbookIds = {
        contentId: undefined,
        rootUnitId: undefined,
        unit: undefined,
        content: undefined
    };

    constructor(
    ) { 
        console.log('textbook-toc-service');    
    }

    setTextbookIds(textbookIds) {
        this.textbookIds = textbookIds;
        console.log('this.TextbookIds in service', this.textbookIds);
    }

    resetTextbookIds() {
        this.textbookIds = {
            contentId: undefined,
            rootUnitId: undefined,
            unit: undefined,
            content: undefined
        };
    }

}

results matching ""

    No results matching ""