attached
See original GitHub issueFoo 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:
- Created 10 years ago
- Comments:21 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@reemaalwail now you can use a global event bus or vuex:
https://medium.com/@andrejsabrickis/https-medium-com-andrejsabrickis-create-simple-eventbus-to-communicate-between-vue-js-components-cdc11cd59860