Created
March 16, 2014 17:30
-
-
Save diverted247/9586835 to your computer and use it in GitHub Desktop.
A TSVue API Example... TypeScript Wrapper for Vuejs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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