question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular component inside Vue component/template

See original GitHub issue

Hi, and thank you for your work! I am trying to migrate a huge angular 1.x app into vue. I was wondering: is it possible to include an angular component into vue code? I would like to re-use an existing angular component inside code refactored through Vue/ngVue, because I cannot simply rewrite it at the moment. Let’s say I am rewriting the “routing wrapper” of my application, but still, as the component loaded for a given route, I would like to inject the old angular code.

Something like:

<old-angular-app>
    <ng-vue-component>
        <old-existing-angular-component />
    </ng-vue-component>
</old-angular-app>

But it does not work, it gives a vue warn on unregistered component, which, I guess, is the right behaviour of the framework. I know that maybe ngVue was intended to include vue components into angular, and not the contrary. But I was wondering if it’s possible to fix that in some way.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
arcadeJHScommented, Jul 29, 2019

@Jvogel-Amplify … which you can for sure read (together with code examples) on my github: https://github.com/arcadeJHS/AngularVueIntegration.

Hope it helps!

0reactions
arcadeJHScommented, Jul 29, 2019

@Jvogel-Amplify: no problem, thank you for reading! 😃 That, for sure, is my point of view… but I hope it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular components inside a Vue route - Get Help
So I'm trying to include an Angular component inside a Vue route, and got it kind of working... On a page load/refresh the...
Read more >
How to use the vuejs component in an angular project
Let's do it. Here in the angular main html template, we add a vue custom component: <script src="https://unpkg.com/vue@next"></script> <!
Read more >
Using Vue Components in Angular - Stack Overflow
Now use the Web Components (generated from Vue or not) directly in Angular templates. E.g. the component defined in the code above could...
Read more >
Using a Vue Component in an Angular App
Using a vue component in an angular app can be tricky! ... This demonstrates how styling works within Vue apps. In App.vue, the...
Read more >
Introduction to components and templates - Angular
The metadata for a component tells Angular where to get the major building blocks that it needs to create and present the component...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found