mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
refactor(aio): remove ngOnInit method
This commit is contained in:
parent
3e47df7526
commit
923e56c3d2
17 changed files with 37 additions and 103 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-modal',
|
||||
templateUrl: './modal.component.html'
|
||||
templateUrl: './modal.component.html',
|
||||
})
|
||||
export class NgxModalComponent implements OnInit {
|
||||
export class NgxModalComponent {
|
||||
|
||||
modalHeader: string;
|
||||
modalContent: string = `Lorem ipsum dolor sit amet,
|
||||
|
|
@ -17,8 +17,6 @@ export class NgxModalComponent implements OnInit {
|
|||
|
||||
constructor(private activeModal: NgbActiveModal) { }
|
||||
|
||||
ngOnInit() { }
|
||||
|
||||
closeModal() {
|
||||
this.activeModal.close();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue