Skip to content

Commit 726bdd6

Browse files
author
VladimirAmiorkov
committed
fix(list-view): add support for "defailtTemplate"
1 parent f443b46 commit 726bdd6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: nativescript-angular/directives/templated-items-comp.ts

+6
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ export abstract class TemplatedItemsComponent implements DoCheck, OnDestroy, Aft
154154
}
155155

156156
viewRef = args.view[NG_VIEW];
157+
158+
// No ng-template is setup, continue with 'defaultTemplate'
159+
if (viewRef) {
160+
return;
161+
}
162+
157163
// Getting angular view from original element (in cases when ProxyViewContainer
158164
// is used NativeScript internally wraps it in a StackLayout)
159165
if (!viewRef && args.view instanceof LayoutBase && args.view.getChildrenCount() > 0) {

0 commit comments

Comments
 (0)