Skip to content

Commit d90f83c

Browse files
docs(examples): don't attempt to convert example content from JSON
There are some files in the examples that look like JSON and the default $http transformResponse handler was trying to convert these from strings to object. An example was the style.css file in the https://docs.angularjs.org/api/ng/type/ngModel.NgModelController docs. This commit fixes this by simply removing this transform when loading these files.
1 parent fcc3a7a commit d90f83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/app/src/examples.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ angular.module('examples', [])
3737
exampleName = exampleNameParts.join(' - ');
3838

3939
angular.forEach(manifest.files, function(filename) {
40-
filePromises.push($http.get(exampleFolder + '/' + filename)
40+
filePromises.push($http.get(exampleFolder + '/' + filename, { transformResponse: [] })
4141
.then(function(response) {
4242

4343
// The manifests provide the production index file but Plunkr wants

0 commit comments

Comments
 (0)