open-ux-tools
open-ux-tools copied to clipboard
FEATURE - Add example code to controller template to avoid developer mistakes
As a developer, I want to be pointed to a mandatory action needed, so that I can extend a page controller
Description
Proposal to enhance https://github.com/SAP/open-ux-tools/blob/main/packages/fe-fpm-writer/templates/page/custom/1.94/ext/Controller.js with
// onInit: function () {
// make sure to call prototype onInit before adding custom code here
// PageController.prototype.onInit.apply(this);
// }
Also to the corresponding TS version.
Technical Design
What modules need to be created or enhanced? How would the functionality be exposed and how can it be consumed?
Acceptance Criteria
Given that I see the new code example. when I create a page controller extension then it is less likely I forget the mandatory step
Notes
Tasks
- [ ]
- [ ] Unit Tests added
- [ ] Test Cases defined