ngx-admin-lte
Version:
AdminLTE theme for angular
24 lines (19 loc) • 599 B
text/typescript
import { Injectable } from '@angular/core';
import { ReplaySubject } from 'rxjs/Rx';
()
export class FooterService {
public current: ReplaySubject<any> = new ReplaySubject<any>( 1 );
public default: any = {
right_part: 'Anything you want',
left_part: `<strong>Copyright © 2016 <a href="#" routerLink="/">Company X</a>.
</strong> All rights reserved.`
}
constructor() {}
/* Redefine the footer html */
public setCurrent( footer: any ) {
this.current.next( footer );
}
public getCurrent() {
return this.current;
}
}