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

feat(Jsonp): add support for JSONP #409

Closed

Description

@jeffbcross

Create a binding for JSONP. Should behave similarly to the browser version, without the convenience of placing a <script> tag in the page.

Activity

  1. PatrickJS commented on May 13, 2016

    @PatrickJS
    Contributor

    for the jsonp we probably can use new Function wrapping Http#request

    var jsonpResponse = 'callback({json: {}})';
    
    var responseFactory = new Function('callback', 'return ' + jsonpResponse)
    
    var responseJson = responseFactory(json => json)

    or

    var jsonpResponse = 'callback({json: {}})';
    
    var responseFactory = new Function('', 'function callback(json) { return json } \n return ' + jsonpResponse)
    
    var responseJson = responseFactory()
  2. PatrickJS commented on May 31, 2016

    @PatrickJS
    Contributor

    done via 4575cb0

  3. angular-automatic-lock-bot commented on Sep 4, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions