sap.ui.define(["./Module"], function() {
return {
customMethod : function() {
var strin = "My Module data";
return strin;
}
};
});
sap.ui.require(["view/ModuleA"], function(ModuleA) {
var textset = ModuleA.customMethod();
console.log(textset);
});
sap.ui.define([
"com/open/controller/BaseController",
"sap/ui/model/json/JSONModel",
"com/ext/controller/Module"
], function(BaseController, JSONModel,Module) {
"use strict";
return BaseController.extend("com.open.controller.App", {
onInit: function() {
var data = Module.customMethod();
}
});
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |