March 2018
Beginner to intermediate
514 pages
13h 11m
English
controller and template are the standard AngularJS components required to render an extension using AngularJS. Both have already been comprehensively explained in Chapter 11, Coding in Qlik Sense.
When using AngularJS, the basic structure of your code compared to the paint approach looks as follows:
define(['text!./template.html'], function(template) { return { paint: function(){}, resize: function(){}, template: template, controller: ['$scope', '$element', function (scope, $element) { console.log("This is Mastering Qlik Sense"); } };});
The equivalent of layout in the paint() method can be found in $scope.layout object.
Read now
Unlock full access