totopia-backend/src/app/pages/infos/info/component/notice-board.component.ts

43 lines
1.2 KiB
TypeScript

import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { fuseAnimations } from 'src/@fuse/animations';
@Component({
selector: 'app-notice-board',
templateUrl: './notice-board.component.html',
styleUrls: ['./notice-board.component.scss'],
encapsulation: ViewEncapsulation.None,
animations: fuseAnimations
})
export class NoticeBoardComponent implements OnInit, OnDestroy {
private unsubscribeAll: Subject<any>;
constructor(private fb: FormBuilder) {
// Set the private defaults
this.unsubscribeAll = new Subject();
}
// -----------------------------------------------------------------------------------------------------
// @ Lifecycle hooks
// -----------------------------------------------------------------------------------------------------
/**
* On init
*/
ngOnInit(): void {
// Subscribe to update order on changes
}
/**
* On destroy
*/
ngOnDestroy(): void {
// Unsubscribe from all subscriptions
this.unsubscribeAll.next();
this.unsubscribeAll.complete();
}
}