fix(datetime): fixes date time in 3.0 + perf improvements

This commit is contained in:
Manu Mtz.-Almeida
2017-03-21 19:44:31 +01:00
parent 02f8f11e74
commit 99142f8ebe
8 changed files with 49 additions and 26 deletions

View File

@ -116,6 +116,8 @@ export class ViewController {
* @hidden
*/
init(componentRef: ComponentRef<any>) {
assert(componentRef, 'componentRef can not be null');
this._cmp = componentRef;
this.instance = this.instance || componentRef.instance;
this._detached = false;