Skip to content

MatthijsKamstra/Vue.hx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue.hx

Vue + Haxe a match made in heaven!

Haxe externs for Vue.JS 2.0. intended to mirror the API located at Vue.js API

Installation

C:\> haxelib install vue

Haxelib

How to get this working?

You might want to update and/or correct the externs: install this repo locally

haxelib dev vue path/to/folder/src

For the cutting-edge/dev-version:

haxelib git vue https://github.com/MatthijsKamstra/Vue.hx.git

don't forget to add it to your build file

-lib vue

Features

  • Externs for the core Vue 2.0 API contained in the Vue class
  • Typedefs for VueConfig , VueComponentOptions, VueOptions, and RenderFunction
  • Externs for VueRouter and VueResource
  • Examples to get you started
  • An optional Component class (VueComponent) which, when extended, allows the use of an @template metatag to add code for templates right in your haxe class.
    @template("<p>My Template</p>") //The component class will use the first @template for the template
    class MyComponent extends vue.VueComponent{
        public function new() {
            super('my-component', {});
        }
    }

Other that that its Haxe/vue business as usual

Examples

Check out the example folder for more tips and tricks.

Releases

No releases published

Packages

No packages published

Languages

  • Haxe 100.0%