Рет қаралды 2,947
Obejctive: Write a Drupal Module that generates an angularjs page
Why do you need it? If you know the potential of angularjs you would know it
For instance, if you want to program on the output of multiple Drupal Views output, you can do it through ng.
Assumptions: You know how to write a Drupal Module, and you know a bit of angularjs
What this code does: It reads a Drupal Views's json output and displays it in a table through angularjs.
Q:) But why we need ng if Drupal itself can output in a table.
A): Seems you have not yet understood angularjs. It makes a faceless Drupal... you dont have to use a drupal theme. You offload progracessing load to browser.And if you know angularjs you will have more points to add to what I have mentioned.