tarant-vue
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
@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
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 | |
| 3.0.38 | 3.2.47 | MIT | |
| 3.0.37 | 3.2.47 | MIT | |
| 3.0.36 | 3.2.47 | MIT | |
| 3.0.35 | 3.2.47 | MIT | |
| 3.0.34 | 3.2.47 | MIT | |
| 3.0.33 | 3.2.47 | MIT | |
| 3.0.32 | 3.2.47 | MIT | |
| 3.0.31 | 3.2.47 | MIT | |
| 3.0.30 | 3.2.47 | MIT | |
| 3.0.29 | 3.2.47 | MIT | |
| 3.0.28 | 3.2.47 | MIT | |
| 3.0.27 | 3.2.47 | MIT | |
| 3.0.26 | 3.2.45 | MIT | |
| 3.0.25 | 3.2.45 | MIT | |
| 3.0.24 | 3.2.45 | MIT | |
| 3.0.23 | 3.2.45 | MIT | |
| 3.0.22 | 3.2.45 | MIT | |
| 3.0.21 | 3.2.45 | MIT | |
| 3.0.20 | 3.2.45 | MIT | |
| 3.0.19 | 3.2.45 | MIT | |
| 3.0.18 | 3.2.45 | MIT | |
| 3.0.17 | 3.2.45 | MIT | |
| 3.0.16 | 3.2.45 | MIT | |
| 3.0.15 | 3.2.45 | MIT | |
| 3.0.14 | 3.2.41 | MIT |
Showing the latest 30 of 74. See every release on npm
