libs/rucken/ionic/src/lib/modules/auth-modal/auth-modal.component.ts
changeDetection | ChangeDetectionStrategy.OnPush |
selector | auth-modal |
templateUrl | auth-modal.component.html |
class
|
Type:
Default value: |
constructor(_authModalConfig: IAuthModalConfig)
|
promptFormModal |
promptFormModal: |
import { ChangeDetectionStrategy, Component, Inject, Input, OnInit, ViewChild } from '@angular/core';
import { AuthModalComponent, AUTH_MODAL_CONFIG_TOKEN, IAuthModalConfig } from '@rucken/core';
import { BindIoInner } from 'ngx-bind-io';
import { PromptFormModalComponent } from '../../components/prompt-form-modal/prompt-form-modal.component';
@BindIoInner()
@Component({
selector: 'auth-modal',
templateUrl: './auth-modal.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class IonicAuthModalComponent extends AuthModalComponent implements OnInit {
@ViewChild('promptFormModal')
promptFormModal: PromptFormModalComponent;
@Input()
class: string = undefined;
constructor(
@Inject(AUTH_MODAL_CONFIG_TOKEN) private _authModalConfig: IAuthModalConfig
) {
super(_authModalConfig);
}
ngOnInit() {
super.ngOnInit();
this.infoMessage =
this.signInType === this.type ?
this.signInInfoMessage : this.signUpInfoMessage;
}
}