I want to be able to use Single File Component (in its own file) and register it as a component to be used in other files. Is it possible?
Thanks.
I want to be able to use Single File Component (in its own file) and register it as a component to be used in other files. Is it possible?
Thanks.
The link you sent me to does not show or explain how I can register Single File Component in its own file as a component. It would be cool if there is something like the following.
Framework7.registerComponent('my-list-item', {
data() {
return { foo: 'bar' }
},
templateUrl: './components/my-list-item.html',
})
Так нельзя, только до момента создания Framework7