Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71529

Dynamic content in virtual scroll list

$
0
0

@DavidvZ wrote:

Is it possible to put componentRefs created via a factory into a virtual scroll list? Or some similar method.

 this.searchResults.forEach(item => {
      const componentFactory = this.componentFactoryResolver.resolveComponentFactory(item.component);
      const componentRef = viewContainerRef.createComponent(componentFactory);
      (<ListInterface>componentRef.instance).data = item.data;
    });

They just append to the element with the directive on currently.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>