Skip to content

Is there a good way to call angular function outside angular ? #3

@keithyau

Description

@keithyau

For example, if i want to create a node / load a node, i would like to do something in my js like

headlessDrupal.loadNode(1);

instead of call it from html. Using getElementByID seems ok but i think it is too long. Any idea ?

I had created a fork and having post / view to D8. Im delighted to make a pull request if joshkoenig want to make this project better :)

Thanks
Keith

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