Skip to content

Commit ecb7fd5

Browse files
author
Srdjan Pajic
committed
fixing modal dialog to work with new version of angular-cli v1
The Angular team considers templates as separate entities from the component which means no private/protected variables can be accessed from them angular/angular-cli#5621
1 parent cb06adf commit ecb7fd5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/modal-dialog.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ import 'rxjs/add/observable/fromPromise';
9494
})
9595
export class ModalDialogComponent implements IModalDialog, OnDestroy {
9696
@ViewChild('modalDialogBody', { read: ViewContainerRef })
97-
protected dynamicComponentTarget: ViewContainerRef;
98-
protected reference: ComponentRef<IModalDialog>;
97+
public dynamicComponentTarget: ViewContainerRef;
98+
public reference: ComponentRef<IModalDialog>;
9999

100100
/** Modal dialog style settings */
101-
protected settings: IModalDialogSettings = {
101+
public settings: IModalDialogSettings = {
102102
overlayClass: 'modal-backdrop fade show',
103103
modalClass: 'fade show modal',
104104
contentClass: 'modal-content',
@@ -113,10 +113,10 @@ export class ModalDialogComponent implements IModalDialog, OnDestroy {
113113
notifyWithAlert: true,
114114
buttonClass: 'btn btn-primary'
115115
};
116-
protected actionButtons: IModalDialogButton[];
117-
protected title: string;
118-
protected onClose: () => Promise<any> | Observable<any> | boolean;
119-
protected showAlert: boolean = false;
116+
public actionButtons: IModalDialogButton[];
117+
public title: string;
118+
public onClose: () => Promise<any> | Observable<any> | boolean;
119+
public showAlert: boolean = false;
120120

121121
private _inProgress = false;
122122
private _alertTimeout: number;

0 commit comments

Comments
 (0)