mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
contentTop -> baContentTop
This commit is contained in:
parent
1224cf17db
commit
e125febda6
7 changed files with 11 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {Component, ViewEncapsulation} from '@angular/core';
|
||||
import {RouteConfig} from '@angular/router-deprecated';
|
||||
|
||||
import {PageTop, ContentTop, Sidebar, BaBackTop} from '../theme/components';
|
||||
import {PageTop, BaContentTop, Sidebar, BaBackTop} from '../theme/components';
|
||||
|
||||
import {Dashboard} from './dashboard';
|
||||
import {Ui} from './ui';
|
||||
|
|
@ -14,13 +14,13 @@ import {Tables} from './tables';
|
|||
selector: 'pages',
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
styles: [],
|
||||
directives: [PageTop, Sidebar, ContentTop, BaBackTop],
|
||||
directives: [PageTop, Sidebar, BaContentTop, BaBackTop],
|
||||
template: `
|
||||
<sidebar></sidebar>
|
||||
<page-top></page-top>
|
||||
<div class="al-main">
|
||||
<div class="al-content">
|
||||
<content-top></content-top>
|
||||
<ba-content-top></ba-content-top>
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -3,12 +3,13 @@ import {Component} from '@angular/core';
|
|||
import {AppState} from "../../../app.state";
|
||||
|
||||
@Component({
|
||||
selector: 'content-top',
|
||||
styles: [require('./contentTop.scss')],
|
||||
template: require('./contentTop.html'),
|
||||
selector: 'ba-content-top',
|
||||
styles: [require('./baContentTop.scss')],
|
||||
template: require('./baContentTop.html'),
|
||||
})
|
||||
export class ContentTop {
|
||||
activePageTitle = '';
|
||||
export class BaContentTop {
|
||||
|
||||
public activePageTitle:string = '';
|
||||
|
||||
constructor(private _state:AppState) {
|
||||
this._state.subscribe('menu.activeLink', (activeLink) => {
|
||||
1
src/app/theme/components/baContentTop/index.ts
Normal file
1
src/app/theme/components/baContentTop/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './baContentTop.component.ts';
|
||||
|
|
@ -1 +0,0 @@
|
|||
export * from './contentTop.component.ts';
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
export * from './pageTop';
|
||||
export * from './msgCenter';
|
||||
export * from './sidebar';
|
||||
export * from './contentTop';
|
||||
export * from './baContentTop';
|
||||
export * from './baCard';
|
||||
export * from './baAmChart';
|
||||
export * from './baChartistChart';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue