I'm facing an issue with accessing the instance of my mobiscroll widget in Angular 4 with Ionic Framework. Despite following all the correct steps, the actual widget won't get selected.
Below is the code for the widget:
<mbsc-widget [options]="emailLoginSettings" #emailLoginWidget="mobiscroll">
<div class="md-logo micons icon-mbsc-logo"></div>
<mbsc-form class="md-form">
<div class="mbsc-form-group-inset">
<mbsc-input type="email" name="Email" placeholder="Email" [(ngModel)]="loginEmail"></mbsc-input>
<mbsc-input name="password" type="password" class="md-passw-field password" placeholder="Password" [(ngModel)]="loginPassword"></mbsc-input>
<mbsc-button name="login" class="login_button" (click)="loginWithEmail()">Login</mbsc-button>
</div>
</mbsc-form>
</mbsc-widget>
In my Angular 4 code, I have added the following:
@ViewChild("emailLoginWidget") emailLoginForm: any;
Despite calling this.emailLoginForm
, no functions from mobiscroll are available. Could it be that I missed importing something? It seems like I haven't imported mobiscroll into the file.
If anyone has encountered a similar issue or knows how to access a mobiscroll instance, any guidance would be greatly appreciated.