Search code examples
angularlistviewnativescriptangular2-nativescriptnativescript-angular

angular example for Multi-Column ListView - nativescript


this may be a really simple question from ur view but I didn't find a simple example anywhere

I found this already https://play.nativescript.org/?template=play-tsc&id=VNkHaw&v=4 but it is not in angular and I am quite a beginner in nativescript (working about 6 months with it) so I couldn't use it or port it to angular.

so all I need is a basic sample or even plugin for multi-column listview in angular


Solution

  • With Angular, you have to

    1. Import the NativeScriptUIListViewModule in your module
    2. Replace self closing tags with closing tags
    3. Use directives instead of XML properties

    Learn more at the official docs, here is a Playground Sample.