Skip to content

Commit 568d77c

Browse files
committed
chore: minor cleanups
1 parent 2433ea3 commit 568d77c

20 files changed

+40
-46
lines changed

projects/coreui-angular/src/lib/aside/app-aside.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { asideMenuCssClasses } from '../shared';
55

66
@Component({
77
selector: 'app-aside, cui-aside',
8-
template: `<ng-content></ng-content>`,
8+
template: `<ng-content />`,
99
standalone: true
1010
})
1111
export class AppAsideComponent implements OnInit, OnDestroy {

projects/coreui-angular/src/lib/breadcrumb/app-breadcrumb.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Component, ElementRef, Inject, Input, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2-
import { DOCUMENT, NgClass, NgIf } from '@angular/common';
2+
import {AsyncPipe, DOCUMENT, NgClass, NgForOf, NgIf} from '@angular/common';
33

44
import { AppBreadcrumbService } from './app-breadcrumb.service';
55
import { Replace } from '../shared';
66
import { Observable } from 'rxjs';
77
import { RouterLink } from '@angular/router';
88

99
@Component({
10-
selector: 'app-breadcrumb',
11-
template: `
10+
selector: 'app-breadcrumb',
11+
template: `
1212
<ng-template ngFor let-breadcrumb [ngForOf]="breadcrumbs | async" let-last = last>
1313
<li class="breadcrumb-item"
1414
*ngIf="breadcrumb.label.title && (breadcrumb.url.slice(-1) == '/' || last)"
@@ -18,8 +18,7 @@ import { RouterLink } from '@angular/router';
1818
</li>
1919
</ng-template>
2020
`,
21-
standalone: true,
22-
imports: [NgIf, NgClass, RouterLink]
21+
imports: [NgIf, NgClass, RouterLink, NgForOf, AsyncPipe]
2322
})
2423
export class AppBreadcrumbComponent implements OnInit, OnDestroy {
2524
@Input() fixed?: boolean;

projects/coreui-angular/src/lib/breadcrumb/cui-breadcrumb.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
<span *ngIf="last" [routerLink]="breadcrumb.url">{{breadcrumb.label.title}}</span>
88
</li>
99
</ng-template>
10-
<ng-content></ng-content>
10+
<ng-content />
1111
</ol>

projects/coreui-angular/src/lib/breadcrumb/cui-breadcrumb.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { Observable } from 'rxjs';
66
import { AppBreadcrumbService } from './app-breadcrumb.service';
77

88
@Component({
9-
// tslint:disable-next-line:component-selector
10-
selector: 'cui-breadcrumb',
11-
templateUrl: './cui-breadcrumb.component.html',
12-
standalone: true,
13-
imports: [NgIf, NgClass, RouterLink, AsyncPipe, NgForOf]
9+
// tslint:disable-next-line:component-selector
10+
selector: 'cui-breadcrumb',
11+
templateUrl: './cui-breadcrumb.component.html',
12+
imports: [NgIf, NgClass, RouterLink, AsyncPipe, NgForOf]
1413
})
1514
export class CuiBreadcrumbComponent implements OnInit, OnDestroy {
1615
@Input() fixed?: boolean;

projects/coreui-angular/src/lib/footer/app-footer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { DOCUMENT } from '@angular/common';
33

44
@Component({
55
selector: 'app-footer, cui-footer',
6-
template: `<ng-content></ng-content>`,
6+
template: `<ng-content />`,
77
standalone: true
88
})
99
export class AppFooterComponent implements OnInit, OnDestroy {

projects/coreui-angular/src/lib/header/app-header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<span class="navbar-toggler-icon"></span>
2626
</button>
2727
</ng-template>
28-
<ng-content></ng-content>
28+
<ng-content />
2929
<ng-template [ngIf]="asideMenuToggler != false">
3030
<button class="navbar-toggler {{asideTogglerClass}}" type="button" [appAsideMenuToggler]="asideMenuToggler">
3131
<span class="navbar-toggler-icon"></span>

projects/coreui-angular/src/lib/sidebar/app-sidebar-footer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Component, HostBinding } from '@angular/core';
22

33
@Component({
44
selector: 'app-sidebar-footer, cui-sidebar-footer',
5-
template: `<ng-content></ng-content>`,
5+
template: `<ng-content />`,
66
standalone: true
77
})
88
export class AppSidebarFooterComponent {

projects/coreui-angular/src/lib/sidebar/app-sidebar-form.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import { Component, HostBinding } from '@angular/core';
22

33
@Component({
44
selector: 'app-sidebar-form, cui-sidebar-form',
5-
template: `<ng-content></ng-content>`,
5+
template: `<ng-content />`,
66
standalone: true
77
})
88
export class AppSidebarFormComponent {
99

1010
@HostBinding('class.sidebar-form') sidebarFormClass = true;
1111

12-
constructor() { }
1312
}

projects/coreui-angular/src/lib/sidebar/app-sidebar-header.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import { Component, HostBinding } from '@angular/core';
22

33
@Component({
44
selector: 'app-sidebar-header, cui-sidebar-header',
5-
template: `<ng-content></ng-content>`,
5+
template: `<ng-content />`,
66
standalone: true
77
})
88
export class AppSidebarHeaderComponent {
99

1010
@HostBinding('class.sidebar-header') sidebarHeaderClass = true;
11-
12-
constructor() { }
1311
}

projects/coreui-angular/src/lib/sidebar/app-sidebar-nav.service.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { Injectable } from '@angular/core';
2-
import { RouterTestingModule } from '@angular/router/testing';
32

43
import { INavData } from './app-sidebar-nav';
5-
import { Router } from '@angular/router';
64

75
@Injectable()
86
export abstract class SidebarNavService {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy