I get extention Switch On/Off, but i have a problema when i change application, because i can't take variable value, the value it's always the same.
controller: ["$scope", function($scope) { function stringToBoolean(string) { switch (string.toLowerCase()) { case "true": case "yes": case "1": return !0; case "false": case "no": case "0": case null: return !1; default: return Boolean(string) } } var app = qlik.currApp(), varName = $scope.layout.props.varName;