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);
Here is a list of items found that needed to be updated manually:
Here is a list of items found that needed to be updated manually:
Thanks! That helped a lot.
I got my page working, but have a few corrections:
content of $scope._$ds is now located at $scope.vm.$ds
components previous found at $scope is now located at $scope.vm.$components
Glad it helped!
Two questions: