Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $http.get('http://localhost/myProject/content.json').success(function (data) {
- // Do stuff...
- }).error((data, status, headers, config) => {
- // Failure...
- });
- <staticContent>
- <remove fileExtension=".json" />
- <mimeMap fileExtension=".json" mimeType="application/json" />
- </staticContent>
- $http.get('content.json').success(function (data) {
- // Do stuff...
- }).error((data, status, headers, config) => {
- // Failure...
- });
- <configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.5" />
- <httpRuntime targetFramework="4.5" />
- </system.web>
- **<system.webServer>
- <staticContent>
- <mimeMap fileExtension=".json" mimeType="application/json" />
- </staticContent>
- </system.webServer>**
- </configuration>
- This works fine.. as what Erez A. Korn has said.
Add Comment
Please, Sign In to add comment