mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-05 08:59:35 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user