Universeorange.com/Docs/

Priya library Function reference Global functions get


    get(String url, Function script);

String url is the get url
The get must return a json object
Function script is a function and fires when get has returned the requested data.

Example

    ready(() => {
        get('/users/', (url, response) => {
            priya.debug(response);
        });
    });

Will result in:

    {
        "html": "/users/",
        "method": null,
        "target": null,
        "script": null,
        "link": null
    }
Last modified: 2021-06-07

© 2021 universeorange.com