src/app/collection-detail-etb/textbook-toc-service.ts
Properties |
Methods |
constructor()
|
resetTextbookIds |
resetTextbookIds()
|
Returns :
void
|
setTextbookIds | ||||
setTextbookIds(textbookIds)
|
||||
Parameters :
Returns :
void
|
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
};
}
}