Can't call the method on button click

var app = new Framework7({
name: ‘MyApp’, // App name
theme: ‘auto’, // Automatic theme detection
el: ‘#app’, // App root element
component: App, // App main component
id: ‘io.framework7.myapp’, // App bundle ID
// App store
store: store,

methods: {

 hello: function() {
     
       console.log('Hello!');
  
   }

},

// Input settings
input: {
scrollIntoViewOnFocus: device.cordova && !device.electron,
scrollIntoViewCentered: device.cordova && !device.electron,
},
// Cordova Statusbar settings
statusbar: {
iosOverlaysWebView: true,
androidOverlaysWebView: false,
},
on: {
init: function () {
var f7 = this;
if (f7.device.cordova) {
// Init cordova APIs (see cordova-app.js)
cordovaApp.init(f7);
}
},
},
});
How can I call the method hello() on the onclick button attribute? When I try to call it, I get the following error.Error2

And how to embed the code in the message?