headless-drupal-angular
headless-drupal-angular copied to clipboard
Is there a good way to call angular function outside angular ?
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