When a page fragment has been inserted or updated, this event is emitted on the new element.
When an element with children is inserted, up:fragment:inserted
is only
emitted once for the entire new subtree.
If you're looking to run code when a new fragment matches
a selector, use up.compiler()
.
This event is emitted after compilation.
up.on('up:fragment:inserted', function(event, fragment) {
console.log("Looks like we have a new %o!", fragment)
})