Skip to content

Commit aa29476

Browse files
committed
refactor(modals): add @ViewChild
1 parent ed49238 commit aa29476

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { Component, ViewChild } from '@angular/core';
2-
import { ModalDirective } from 'ngx-bootstrap/modal';
1+
import {Component, ViewChild} from '@angular/core';
2+
import {ModalDirective} from 'ngx-bootstrap/modal';
33

44
@Component({
55
templateUrl: 'modals.component.html'
66
})
77
export class ModalsComponent {
8-
public myModal;
9-
public largeModal;
10-
public smallModal;
11-
public primaryModal;
12-
public successModal;
13-
public warningModal;
14-
public dangerModal;
15-
public infoModal;
8+
@ViewChild('myModal') public myModal: ModalDirective;
9+
@ViewChild('largeModal') public largeModal: ModalDirective;
10+
@ViewChild('smallModal') public smallModal: ModalDirective;
11+
@ViewChild('primaryModal') public primaryModal: ModalDirective;
12+
@ViewChild('successModal') public successModal: ModalDirective;
13+
@ViewChild('warningModal') public warningModal: ModalDirective;
14+
@ViewChild('dangerModal') public dangerModal: ModalDirective;
15+
@ViewChild('infoModal') public infoModal: ModalDirective;
1616
}

0 commit comments

Comments
 (0)