import { Component } from '@angular/core'; @Component({ selector: 'ngx-tab1', template: `
Early home automation began with labor-saving machines. Self-contained electric or gas powered home appliances became viable in the 1900s with the introduction of electric power distribution and led to the introduction of washing machines (1904), water heaters (1889), refrigerators, sewing machines, dishwashers, and clothes dryers.
`, }) export class Tab1Component { } @Component({ selector: 'ngx-tab2', template: `Tab 2 works!
`, }) export class Tab2Component { } @Component({ selector: 'ngx-tabs', styleUrls: ['./tabs.component.scss'], templateUrl: './tabs.component.html', }) export class TabsComponent { tabs: any[] = [ { title: 'Route tab #1', route: '/pages/layout/tabs/tab1', }, { title: 'Route tab #2', route: '/pages/layout/tabs/tab2', }, ]; }