Commit d6459bf4 authored by liujiangnan's avatar liujiangnan

修改展现

parent 29d0fc7d
......@@ -5,6 +5,7 @@
OnChanges,
OnInit,
AfterViewInit, ElementRef, ViewChild,
ApplicationRef
} from '@angular/core';
import * as _ from 'lodash';
......@@ -35,7 +36,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
curItemUrl = '';
curEvt;
constructor() {
constructor(private appRef: ApplicationRef) {
}
range(start, end) {
......@@ -46,7 +47,8 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
let _this = this;
(<any>window).courseware.getData(function(data){
if(data){
_this.data.contentObj.titleObj = data;
_this.data.contentObj.titleObj.content = data.content;
_this.appRef.tick();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment