We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b664e20 commit dcb0da8Copy full SHA for dcb0da8
docs/app/src/examples.js
@@ -159,10 +159,11 @@ angular.module('examples', [])
159
160
};
161
162
- // Initialize the example data, so it's ready when clicking the open button.
163
- // Otherwise pop-up blockers will prevent a new window from opening
164
- ctrl.prepareExampleData(ctrl.example.path);
165
-
+ ctrl.$onInit = function() {
+ // Initialize the example data, so it's ready when clicking the open button.
+ // Otherwise pop-up blockers will prevent a new window from opening
+ ctrl.prepareExampleData(ctrl.example.path);
166
+ };
167
}]
168
169
}])
0 commit comments