Early home automation began with labor-saving machines. Self-contained electric or gas powered 7 | home appliances 8 | became viable in the 1900s with the introduction of 9 | electric power distribution 10 | and led to the introduction of washing machines (1904), water heaters (1889), refrigerators, sewing machines, 11 | dishwashers, and clothes dryers. 12 |
13 | `, 14 | }) 15 | export class Tab1Component { } 16 | 17 | @Component({ 18 | selector: 'ngx-tab2', 19 | template: ` 20 |Tab 2 works!
21 | `, 22 | }) 23 | export class Tab2Component { } 24 | 25 | @Component({ 26 | selector: 'ngx-tabs', 27 | styleUrls: ['./tabs.component.scss'], 28 | templateUrl: './tabs.component.html', 29 | }) 30 | export class TabsComponent { 31 | 32 | tabs: any[] = [ 33 | { 34 | title: 'Route tab #1', 35 | route: '/pages/ui-features/tabs/tab1', 36 | }, 37 | { 38 | title: 'Route tab #2', 39 | route: '/pages/ui-features/tabs/tab2', 40 | }, 41 | ]; 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/app/pages/ui-features/typography/typography.component.ts: -------------------------------------------------------------------------------- 1 | import { Component, OnDestroy } from '@angular/core'; 2 | import { NbThemeService, NbMediaBreakpoint, NbMediaBreakpointsService } from '@nebular/theme'; 3 | 4 | @Component({ 5 | selector: 'ngx-typography', 6 | styleUrls: ['./typography.component.scss'], 7 | templateUrl: './typography.component.html', 8 | }) 9 | export class TypographyComponent implements OnDestroy { 10 | breakpoint: NbMediaBreakpoint; 11 | breakpoints: any; 12 | themeSubscription: any; 13 | 14 | constructor(private themeService: NbThemeService, 15 | private breakpointService: NbMediaBreakpointsService) { 16 | 17 | this.breakpoints = this.breakpointService.getBreakpointsMap(); 18 | this.themeSubscription = this.themeService.onMediaQueryChange() 19 | .subscribe(([oldValue, newValue]) => { 20 | this.breakpoint = newValue; 21 | }); 22 | } 23 | 24 | ngOnDestroy() { 25 | this.themeSubscription.unsubscribe(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/app/pages/ui-features/ui-features.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'ngx-ui-features', 5 | template: ` 6 |