Skip to content

Commit 865265d

Browse files
committed
refactor: public_api
1 parent 29d7613 commit 865265d

File tree

14 files changed

+35
-15
lines changed

14 files changed

+35
-15
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export * from './app-aside.module';
1+
export * from './public_api';
2+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { AppAsideComponent } from './app-aside.component';
2+
export { AppAsideModule } from './app-aside.module';

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {DOCUMENT} from '@angular/common';
44
import {AppBreadcrumbService} from './app-breadcrumb.service';
55

66
@Component({
7+
// tslint:disable-next-line:component-selector
78
selector: 'cui-breadcrumb',
89
templateUrl: './cui-breadcrumb.component.html'
910
})
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export * from './app-breadcrumb.module';
1+
export * from './public_api';
2+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { AppBreadcrumbService } from './app-breadcrumb.service';
2+
export { AppBreadcrumbComponent } from './app-breadcrumb.component';
3+
export { AppBreadcrumbModule } from './app-breadcrumb.module';
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export * from './app-footer.module';
1+
export * from './public_api';
2+
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { AppFooterComponent } from './app-footer.component';
2+
export { AppFooterModule } from './app-footer.module';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './app-header.module';
1+
export * from './public_api';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { AppHeaderComponent } from './app-header.component';
2+
export { AppHeaderModule } from './app-header.module';
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import { Component, ElementRef, HostBinding, Input, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
22
import { Router } from '@angular/router';
33

4+
import { INavData } from './app-sidebar-nav';
5+
46
@Component({
57
selector: 'app-sidebar-nav',
68
templateUrl: './app-sidebar-nav.component.html'
79
})
810
export class AppSidebarNavComponent implements OnChanges {
9-
@Input() navItems: Array<any>;
11+
@Input() navItems: INavData[] = [];
1012

1113
@HostBinding('attr.role') role = 'nav';
1214

13-
public navItemsArray: Array<any>;
15+
public navItemsArray: INavData[] = [];
1416

1517
constructor(
1618
public router: Router,
@@ -21,6 +23,6 @@ export class AppSidebarNavComponent implements OnChanges {
2123
}
2224

2325
public ngOnChanges(changes: SimpleChanges): void {
24-
this.navItemsArray = JSON.parse(JSON.stringify(this.navItems || []));
26+
this.navItemsArray = Array.isArray(this.navItems) ? this.navItems.slice() : [];
2527
}
2628
}

0 commit comments

Comments
 (0)