headless-drupal-angular icon indicating copy to clipboard operation
headless-drupal-angular copied to clipboard

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

Open keithyau opened this issue 11 years ago • 0 comments

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

keithyau avatar Oct 20 '14 14:10 keithyau