Hi… Im trying to access my phone gallery and retrive image.but im getting this error
`app.bundle.js:2265 Uncaught EXCEPTION: Error during evaluation of "click"
ORIGINAL EXCEPTION: ReferenceError: options is not defined
ORIGINAL STACKTRACE:
ReferenceError: options is not defined
at AdminPage.getImage (http://localhost:8100/build/js/app.bundle.js:63653:43)
at AbstractChangeDetector.ChangeDetector_AdminPage_0.handleEventInternal (viewFactory_AdminPage:482:33)
at AbstractChangeDetector.handleEvent (http://localhost:8100/build/js/app.bundle.js:14022:30)
at AppView.triggerEventHandlers (http://localhost:8100/build/js/app.bundle.js:18329:37)
at eval (viewFactory_AdminPage:885:106)
at http://localhost:8100/build/js/app.bundle.js:33471:37
at http://localhost:8100/build/js/app.bundle.js:32848:87
at Zone.run (http://localhost:8100/build/js/app.bundle.js:2258:25)
at Zone.run (http://localhost:8100/build/js/app.bundle.js:17573:43)
at NgZone.run (http://localhost:8100/build/js/app.bundle.js:17521:41)
ERROR CONTEXT:
[object Object]`
This is my code -
`import {Page, NavController, Alert} from 'ionic-angular';
import {Camera} from 'ionic-native';
@Page({
templateUrl: './build/pages/admin_page/admin_page.html'
})
export class AdminPage{
pages: String = "pages";
tags: String = "tags";
page_slect_alert: {title: string};
constructor(){
//this.zone = ngzone;
// this.image = null;
this.page_slect_alert={
title: 'Select Fb Page For Image'
};
}
stpSelect(){
console.log('select');
}
getImage(){
Camera.getPicture(options).then((imageData) => {
// imageData is either a base64 encoded string or a file URI
// If it's base64:
let base64Image = "data:image/jpeg;base64," + imageData;
}, (err) => {
});
};
}
`
Can any one help me.