mrjmd / pdb

Decoupled Blocks is a Drupal 8 module to simplify integrating javascript frameworks into your site.
https://www.drupal.org/sandbox/mrjmd/2664138
57 stars 14 forks source link

#60 Setup module path dynamically #62

Closed kenneth-bolivar-castro closed 8 years ago

kenneth-bolivar-castro commented 8 years ago

To define proper url to Angular2 module, I defined "module_path" within drupalSettings based on current path's module, I used the following method inside "Ng2Block" class: public function attachSettings(array $component)

Also I setup proper URL to "_ng2todo" template and style files by "drupalSettings", drupalSettings.pdb.ng2.module_path

Related with issue: #60