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.
This commit is contained in:
Peter Bacon Darwin
2014-04-28 22:18:46 +01:00
parent ed18b8c9da
commit c3fe170b8b

View File

@@ -37,7 +37,7 @@ angular.module('examples', [])
exampleName = exampleNameParts.join(' - ');
angular.forEach(manifest.files, function(filename) {
filePromises.push($http.get(exampleFolder + '/' + filename)
filePromises.push($http.get(exampleFolder + '/' + filename, { transformResponse: [] })
.then(function(response) {
// The manifests provide the production index file but Plunkr wants