项目初始化
This commit is contained in:
4
src/app/layout/pro/components/logo/logo.component.html
Normal file
4
src/app/layout/pro/components/logo/logo.component.html
Normal file
@ -0,0 +1,4 @@
|
||||
<a [routerLink]="['/']" class="d-flex align-items-center">
|
||||
<img src="./assets/logo-color.svg" alt="{{ name }}" height="32" />
|
||||
<h1>{{ name }}</h1>
|
||||
</a>
|
||||
15
src/app/layout/pro/components/logo/logo.component.ts
Normal file
15
src/app/layout/pro/components/logo/logo.component.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
import { SettingsService } from '@delon/theme';
|
||||
|
||||
@Component({
|
||||
selector: 'layout-pro-logo',
|
||||
templateUrl: './logo.component.html',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class LayoutProLogoComponent {
|
||||
get name(): string {
|
||||
return this.setting.app.name!;
|
||||
}
|
||||
|
||||
constructor(private setting: SettingsService) {}
|
||||
}
|
||||
Reference in New Issue
Block a user