Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comments
Comment #2
potop CreditAttribution: potop commentedComment #3
potop CreditAttribution: potop commentedUploader makes something strange with file's extension.
Comment #4
subish92 CreditAttribution: subish92 commentedSeems 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
Comment #5
hasmimeraj CreditAttribution: hasmimeraj commentedAny update on backport of this module.
Comment #6
matthandHi 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
Comment #7
emacoti CreditAttribution: emacoti as a volunteer and at Common Sense Media commented