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.

Foo getting rendered in both cases but the attached callback never get called in the first case. jsfiddle: http://jsfiddle.net/marfalkov/B8vZL/

var Foo = Vue.extend({
    template: "<p>foo</p>",
    attached: function() {
        console.log("I'm attached"); // only run in test2
    }
})

var test1= new Vue({
    template: "<div v-component='foo'></div>",
    components: {
        foo: Foo
    }
})
test1.$appendTo("body")

var test2 = new Foo()
test2.$appendTo("body")

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

The New Science of Adult Attachment and How It Can Help ...
Attached makes a puzzling and simplistic suggestion that, through conscious intention, you can somehow train yourself to be interested in partners who do...
Read more >
Attached the Book | Attached, a new book by Amir Levine ...
"A groundbreaking book that redefines what it means to be in a relationship". ... Amir Levine, M.D. and Rachel S. F. Heller, M.A.....
Read more >
The New Science of Adult Attachment and How It Can Help ...
"Attached", in a nutshell, delineates how attachment styles - anxious, avoidant and secure, react when they are in a relationship. The authors not...
Read more >
Attached Definition & Meaning - Dictionary.com
joined; connected; bound. having a wall in common with another building (opposed to detached): an attached house.
Read more >
ATTACHED | definition in the Cambridge English Dictionary
attached | Intermediate English ... feeling close to emotionally, or loving: She really gets attached to her cats.
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