|
1 | | -import { Component } from '@angular/core'; |
2 | | -import { FrameConfig, NavUser, FrameEvent, FrameEvents } from 'projects/ng-mat-components/src/public-api'; |
| 1 | +import { registerLocaleData } from '@angular/common'; |
| 2 | +import localeDe from '@angular/common/locales/de'; |
| 3 | +import localeDeExtra from '@angular/common/locales/extra/de'; |
| 4 | +import { Component, OnInit } from '@angular/core'; |
| 5 | +import { |
| 6 | + FrameConfig, |
| 7 | + FrameEvent, |
| 8 | + FrameEvents, |
| 9 | + NavUser, |
| 10 | +} from 'projects/ng-mat-components/src/public-api'; |
3 | 11 | import { routes } from './app-routing.module'; |
4 | 12 |
|
5 | 13 | @Component({ |
6 | 14 | selector: 'app-root', |
7 | 15 | templateUrl: './app.component.html', |
8 | | - styleUrls: ['./app.component.scss'] |
| 16 | + styleUrls: ['./app.component.scss'], |
9 | 17 | }) |
10 | | -export class AppComponent { |
| 18 | +export class AppComponent implements OnInit { |
11 | 19 | title = 'FS DevOps`s ng mat components'; |
12 | 20 | appRoutes = routes; |
13 | 21 |
|
14 | 22 | frameConfig: FrameConfig = { |
15 | 23 | appName: 'Dummy App', |
16 | 24 | // appNameShort: stringOfLength('DUMMY', 0, 6), |
17 | | - logo: 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Angular_full_color_logo.svg/1024px-Angular_full_color_logo.svg.png' |
| 25 | + logo: 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/cf/Angular_full_color_logo.svg/1024px-Angular_full_color_logo.svg.png', |
18 | 26 | }; |
19 | 27 | navUser: NavUser = { |
20 | | - profilePicture: 'https://material.angular.io/assets/img/examples/shiba1.jpg', |
| 28 | + profilePicture: |
| 29 | + 'https://material.angular.io/assets/img/examples/shiba1.jpg', |
21 | 30 | name: 'Some User', |
22 | | - role: 'Engineer' |
| 31 | + role: 'Engineer', |
| 32 | + }; |
| 33 | + |
| 34 | + ngOnInit() { |
| 35 | + registerLocaleData(localeDe, 'de-DE', localeDeExtra); |
23 | 36 | } |
24 | 37 |
|
25 | 38 | onEvent(frameEvent: FrameEvent) { |
|
0 commit comments