[progress Communities] [progress Openedge Abl] Forum Post: Scripts In Kuib2

  • Thread starter Thread starter MatsRisberg
  • Start date Start date
Status
Not open for further replies.
M

MatsRisberg

Guest
How should the view-factory.js files for KUIB2 be written? There are no script files created when adding a new page. The old ones from KUIB1 doesn't work either, the events doesn't seem to map correctly. example: (function(angular) { angular .module('viewFactories') .factory('myPage', ['$q', 'dsService', function($q, dsService) { function AccountingBankStatements() { this.scope = null; } MyPage.prototype = { onInit: function($stateParams) { return $q(function(resolve, reject) { resolve({}); }); }, onHide: function(customData) { }, onShow: function($scope, customData) { myLib.DoStuff(); }, }; return new MyPage(); }]); })(angular);

Continue reading...
 
Status
Not open for further replies.
Back
Top