Skip to content

Latest commit

 

History

History

ma-data

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
id title type
ma-data
<ma-data>
component

{% raw %}

<ma-data>

Authentication, data loading & storing, uploads, on a variety of cloud services. Thin wrapper over the Madata Vue component.

Limitations

  • You must declare the property and set it to an object or array through data() (if manually creating a Vue app) or the data attribute (if using v-app).
  • You must never overwrite the object you passed through v-model with another object. <ma-data> relies on having a reference to it that doesn't change.

Examples

Simple example (just data loading):

<v-app data='{"cats": []}'>
	<ma-data v-model="cats" src="https://github.com/leaverou/mv-data/cats2.json"></ma-data>

	<article v-for="cat in cats">
		{{ cat.name }} is {{ cat.age }} years old
	</article>
</v-app>

For more examples and documentation, look at the Madata Vue component page.

{% endraw %}