Skip to content

Connecting sketch and app with $scope #2

@SciutoAlex

Description

@SciutoAlex

Hi there-

Here's an idea for improving the plugin.

The usecase: I'm using p5.dom to add in a slider that controls the animation. I'd like to be able to get that slider value back to the Angular controller. If there was some way pass $scope between the sketch and the angular application, I think the plugin would more useful.

Maybe this is trivial, and just needs a short example, but I'm not sure how to do it.

EDIT: Here's a better way of saying what I'm thinking about:

 <p5 sketch="sketchOne" circleSize=45></p>

Could circleSize somehow be passed to the sketch?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions