tarant-vue

vue renderer materializer for the tarant framework
1,790 7
Install
npm install tarant-vue
Latest Version:3.0.43
Vue:3
Older releases:2
License:MIT
Last Updated:Oct 7, 2023
Links: GitHub  ·  npm
Maintainer: kmruiz

logomakr_3zswgm

npm Build Status Coverage Status PRs Welcome issues Welcome npm GitHub issues GitHub pull requests Downloads

Motivation

Provide the capabilities to actors to be render using the vue framework.

Installation

add it to your project using npm install tarant-vue --save or yarn add tarant-vue

Usage

Extend the vue actor with a template and the properties to bind to the id of the actor will relate to the html component id

import { VueActor } from "tarant-vue";

export default class AppActor extends VueActor {
    constructor() {
      super("#app")
      this.schedule(1000, this.incrementCounter, [])
    }
  
    private incrementCounter(): void {
      this.counter++;
    }

    private counter = 0; 
    readonly template : string = "<div>counter: {{counter}}</div>"
}

Initialize the actor system with the provided materializer

import { ActorSystem, ActorSystemConfigurationBuilder } from 'tarant'
import AppActor from './Actor/AppActor';
import { VueRenderer } from 'tarant-vue';

window.onload = () => {
  const system = ActorSystem.for(ActorSystemConfigurationBuilder.define()
  .withMaterializer(new VueRenderer())
  .done())  
  system.actorOf(AppActor)
}
Created my free logo at LogoMakr.com

Related Packages

nuxt-domain

Architecture domain-driven pour Nuxt : routes, i18n et auto-imports par domaine

447 0
@upcsoft/ddd

CLI to quickly scaffold Vue exam projects with UPC DDD folder conventions, Vite,...

1,050
@xeno-js/vue

Application architecture for Vue with explicit dependency injection, CQRS, compo...

1,952 1
4layers

Architecture layer checker for Vue.js / TypeScript apps. Enforces Presentation -...

417 1

Version History

Version Released Vue License
3.0.43 3.3.4 MIT
3.0.42 3.3.4 MIT
3.0.41 3.3.4 MIT
3.0.40 3.3.4 MIT
3.0.39 3.3.4 MIT