What is the difference between vue and the two ways to create components?

I always use the first one, but I haven"t used the second one. Which one is better?

var Python={
      template:"-sharppython"
}
var Python=Vue.extend({
      template:"-sharppython"
})
Mar.30,2021

same, all are vue components, generic


this is a locally registered component
var Python= {

  template:"-sharppython"

}

this is the global registration component
var Python=Vue.extend ({

)
  template:"-sharppython"

})

the difference is that global registration is applicable to all places, while local registration is only available on the registration page

.
Menu