This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NgModule({...}) | |
export class UserModule { | |
constructor( | |
ngbModal: NgbModal, | |
modalService: ModalService, | |
store: Store<AppState> | |
) { | |
// Disallow closing the login modal if user is accessing a protected route as first page. | |
// (else they would get an empty page due to the auth guard) | |
let loginModalOptions = store.select(x => x.user.loginRequired) |