Webix jet global object

In webix jet in my JetApp class I want to declare some global object and use it in my whole project.
How can I implement this?

I used myApp.setService(“serviceName”, someObject );

is it the right way to use ?

in my views I am getting this object by this.app.getService(“serviceName”);

https://forum.webix.com/discussion/comment/22121/#Comment_22121