Related to the GitHub issue raised here:
https://github.com/angular/angular.js/issues/1243
Ports within an AngularJS $resource URI are removed as it reads them as a variable marker. Fix is to escape the ':' with double slashes until an Angular fix is delivered.
For local development I tend to have multiple sites on different ports, not masked via a host-header so it affected my local implementation, I guess it may affect others?
Suggested Drupal module fix is two fold, escape ports in the basePath as it is generated by the module and make these settings available via a 'settings' config constant for other modules to consume via DI.
Comment | File | Size | Author |
---|---|---|---|
#1 | angularjs-config-2055677-1.patch | 899 bytes | g.mannings |
Comments
Comment #1
g.mannings CreditAttribution: g.mannings commentedTurned out that didn't really need to adjust the basePath to fix the issue for Angular to work within Drupal, just removed the basePath from the node.json request.
I couldn't see any implementation issues with this with the current code so I've included a patch.
I've also included an Angular module for the Drupal settings - don't know if it's any help so feel free to ignore!