File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ const getProviders = (injector) => {
31
31
}`
32
32
] ,
33
33
template : `<div #content></div>` ,
34
- // debugtemplate : `
34
+ // template : `
35
35
// <div style="padding: 1em; border: 1px solid lightgrey;">
36
36
//
37
37
// <div #content style="color: lightgrey; font-size: smaller;">
38
38
// <div>ui-view #{{uiViewData.id}} created by '{{ parentContext.name || "(root)" }}' state</div>
39
39
// <div>name: (absolute) '{{uiViewData.fqn}}' (contextual) '{{uiViewData.name}}@{{parentContext.name}}' </div>
40
- // <div>currently filled by: '{{(uiViewData.config && uiViewData.config.context) || 'empty...'}}'</div>
40
+ // <div>currently filled by: '{{(uiViewData.config && uiViewData.config.viewDecl.$ context) || 'empty...'}}'</div>
41
41
// </div>
42
42
//
43
43
// </div>`
@@ -90,7 +90,10 @@ export class UiView {
90
90
}
91
91
92
92
viewConfigUpdated ( config : ViewConfig ) {
93
- if ( ! config ) return ; // TODO do something smarter
93
+ if ( ! config ) {
94
+ return this . disposeLast ( ) ;
95
+ }
96
+
94
97
let { uiViewData, injector, dcl, elementRef} = this ;
95
98
let viewDecl = < Ng2ViewDeclaration > config . viewDecl ;
96
99
You can’t perform that action at this time.
0 commit comments