Closed (fixed)
Project:
Tinycontrol
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2015 at 14:05 UTC
Updated:
19 Nov 2015 at 14:54 UTC
Jump to comment: Most recent
Unless you want to give out the same result, you want to do:
return [
'charts' => $output,
'#attached' => [
// Pushing down data to JS.
'drupalSettings' => [
'tc' => $data,
],
// Including our own JS "library". Dependencies for it (like Chart.js,
// Chart.Scatter and jQuery) are handled by tc.libraries.yml.
'library' => [
'tc/tc',
],
],
'#cache' => [
'max-age' => 0,
],
];
Comments
Comment #3
boobaaThanks!