0.0.4 • Published 3 years ago

ragu-client-vue v0.0.4

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Testing License: MIT npm version PRs Welcome

A React Client for Ragu Server - A micro-frontend framework.

Installation

npm install ragu-client-vue

How to Use

<template>
    <RaguComponent
      src="https://ragu-framework.github.io/ragu-vue-server-adapter/quick-start.json"
      v-on:rendered="rendered"
      v-on:fetched="fetched"
      v-on:fetch-fail="fetchFail"
    />
</template>

<script>
import RaguComponent from 'ragu-client-vue';

export default {
  name: 'App',
  components: {
    RaguComponent
  },
  methods: {
    rendered() {
      console.log('rendered');
    },
    fetched() {
      console.log('fetched');
    },
    fetchFail() {
      console.log('fetched-fail');
    }
  }
}
</script>
PropertyDescriptionRequiredDefault
srcThe micro-frontend URLtrue-
v-on:fetchedA callback called when component fetch is finished.false-
v-on:fetch-failA callback called when component fetch fails.false-
v-on:renderedA callback called when component was hydrated (it means, the render process finished)false-

Development notes

Project setup

yarn install
yarn build

Compiles a demo using the library

yarn serve
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago