I want to use this module in my Drupal 7 project with Angular 2 so I tried to make a backport.

As I'm poorly familiar with D8 architecture so I could miss something important.
I skipped configuration part I didn't get this 'header'\'footer' assets thing at all.

But after all now it kinda works: Examples 1 and 2, and Hero components work and Todo component fails resolving some parameters on load.
Now it requires Yaml library installed via composer to parse components' info.

Can someone take a look at the code?
May be we could create a 7.x branch to make this technic available to D7 developers?

CommentFileSizeAuthor
#3 pdb.tgz54.58 KBpotop
#2 pdb.tar_.gz54.58 KBpotop
pdb.tar_.gz54.58 KBpotop
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

potop created an issue. See original summary.

potop’s picture

FileSize
54.58 KB
potop’s picture

FileSize
54.58 KB

Uploader makes something strange with file's extension.

subish92’s picture

Seems like interesting topic.. joining here for future updates on this. Wondering how Angular2 can be perfectly added to D7. In a completely decoupled approach things seems fine, but in a progressive integration not sure about the right plan.

-Subish

hasmimeraj’s picture

Any update on backport of this module.

matthand’s picture

Hi Potop,

I installed your D7 backport. Composer Install went smoothly in the module directory. Npm install also succeeded with few warnings.

I see the angular apps injected into the Main Content region.

I confirm the Todo example fails, outputting several errors to console.

Pretty awesome that I was able to do this install in 15 minutes. Sorry that's all the time I have right now, but I'd like to look through your code. I can see these blocks consuming JSON services and giving some great options to Drupal devs looking to spin up Angular components as needed. Congrats on the backport! It's going well!

Matt

emacoti’s picture

Status: Active » Closed (outdated)