Skip to content

Instantly share code, notes, and snippets.

@diverted247
Created March 16, 2014 17:30
Show Gist options
  • Select an option

  • Save diverted247/9586835 to your computer and use it in GitHub Desktop.

Select an option

Save diverted247/9586835 to your computer and use it in GitHub Desktop.
A TSVue API Example... TypeScript Wrapper for Vuejs
class MyView extends TSVue {
map:{
data:['a']
methods:['plus'],
computed:['aplus']
}
plus(){
this.a++;
}
aplus:number;
aplusGet():number{
return this.a + 1
}
aplusSet( a:number ){
this.a = a;
return this.a
}
a:number = 1;
}
myView = new MyView();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment