Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class not found #7

Open
NareshKukreti12 opened this issue Aug 28, 2019 · 0 comments
Open

Class not found #7

NareshKukreti12 opened this issue Aug 28, 2019 · 0 comments
Assignees

Comments

@NareshKukreti12
Copy link

NareshKukreti12 commented Aug 28, 2019

Hi @cakuki I am getting class not found error in ionic 3. I am testing on android device. This is my code -
HTML
<div class="date-label" (click)="show()">No date selected</div> <div class="inline-datepicker" ></div>

.ts

`declare var cordova:any;
this.element = (document.querySelector('.inline-datepicker') as HTMLDivElement);
show(){

console.log("Element", this.element)
let options = {
'mode': cordova.plugins.DatePicker.Mode.DATE,
'date': new Date(),
};
let success = (data)=> {
alert('success');
}
let error = (data)=> {
console.log("err",data);
}
cordova.plugins.DatePicker.create(this.element, options,success, error);
cordova.plugins.DatePicker.show(this.element, options,success, error);}

What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants