Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

angular directive templateUrl should allow "text/html" Accept and content-type headers #6860

Closed
@geoidesic

Description

@geoidesic

templateUrl is generally going to be expecting to receive HTML back from the server. To inform the server of that (according to RESTful best practices) it would be useful to be able to specify the headers for the $http request that fetches the actual template.

The default being used by angularJS is "application / json". It would be useful to be able to specify "text/html" instead for templateUrl. In addition I submit that should be the default for any request that expects HTML back from the server.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions