Hello I want to assign returned value from promise to external variable. I tried many times but finally I give up.
export class TestPage {
test:any;
constructor(private storage: Storage) {
storage.get('testy').then((value) => {
this.test = value;
});
}
}