NativeScript + Angular 2 Tab Navigation

Easy tab navigation using NativeScript and Angular 2.

  •         
    
    import {Component} from "angular2/core";
    
    @Component({
      selector: "my-app",
      template: `
    <TabView #tabview>
      <StackLayout *tabItem="{title: 'Tab1'}">
        <Label text="This is Label in Tab 1"></Label>
      </StackLayout>
      <StackLayout *tabItem="{title: 'Tab2'}">
        <Label text="This is Label in Tab 2"></Label>
      </StackLayout>
    </TabView>
    `
    })
    export class myApp {
    }