How to display local variable in a page

I want to display the variable x in my page using {{ }}

Coding snippet:
ionViewDidLoad() {‘savedData’).then((data) => {

var x=data[0].awb;

define this var global and bind

public let x : any // globaly defined

this.x = data[0].awb

This makes no sense, and doesn’t even compile. let declares lexically-scoped variables, and doesn’t belong on object properties.

public x: any;

    // If you declare var x here, it belongs to your function scope
    this.x = data[0].awb;



Thank you for reply.