Skip to content

Generate different formats from results #6

Description

@danielyewright

Functionality for generating different formats. This could be a list of radio buttons that would pass in a format in the query URL.

There will need to be another parameter passed into the getAll user API call function, and an interpolation passed into the query URL.

Radio buttons will need bindings so that they pass into the URL properly.

getAll(count, nat, format) {
    return this.api.get(`https://randomuser.me/api/?results=${count}&nat=${nat}&format=${format}`);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions