angularjs Tips Tricks

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
RobKoberg's picture

Angular and Drupal: Proxying angular for development

A few weeks ago, I read a blog post about using angular in drupal. It mentioned to rebuild the app each time you make a change. That would drive me mad.

If you are using angular on the same server as drupal (that is, in a subdirectory of the docroot), you can proxy your grunt served angular app.

To proxy the angular app do a normal $ grunt serve to have the app running. In a apache vhost, you can place:

DocumentRoot "/path/to/drupal/docroot"
ServerName local.dev

ProxyRequests Off

Order deny,allow
Allow from all

Read more
Subscribe with RSS Syndicate content