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 adfc4ea commit 23ea369Copy full SHA for 23ea369
examples/bootstrap-example.html
@@ -262,6 +262,8 @@ <h3>Schema</h3>
262
$scope.loading = true;
263
$http.get('https://api.github.com/gists/' + gistId).success(function(res) {
264
$scope.error = null;
265
+ $scope.tests.unshift({name: 'Gist'});
266
+ $scope.selectedTest = $scope.tests[0];
267
$scope.loadedData = {
268
created: moment(res.created_at).fromNow(),
269
user: res.user !== null ? res.user.login : 'Anonymous'
@@ -279,7 +281,7 @@ <h3>Schema</h3>
279
281
$scope.selectedTest = $scope.tests[0];
280
282
283
$scope.$watch('selectedTest',function(val){
- if (val) {
284
+ if (val && val.data !== undefined) {
285
$http.get(val.data).then(function(res) {setNewData(res.data);});
286
}
287
});
0 commit comments