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
| app/interfaces/IApplicationMode.ts(6,15): error TS2095: Could not find symbol 'bool'. | |
| app/interfaces/IWindow.ts(4,19): error TS2095: Could not find symbol 'bool'. | |
| app/interfaces/IGuidedTip.ts(3,22): error TS2095: Could not find symbol 'bool'. | |
| app/interfaces/IGuidedTip.ts(5,28): error TS2095: Could not find symbol 'bool'. | |
| app/app.ts(39,27): error TS2095: Could not find symbol 'bool'. | |
| app/app.ts(40,25): error TS2095: Could not find symbol 'bool'. | |
| app/app.ts(41,32): error TS2095: Could not find symbol 'bool'. | |
| app/app.ts(42,34): error TS2095: Could not find symbol 'bool'. | |
| app/app.ts(44,35): error TS2095: Could not find symbol 'bool'. | |
| app/app.ts(46,23): error TS2095: Could not find symbol 'bool'. |
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
| declare var Vue: VueStatic; | |
| interface VueObject{ | |
| } | |
| interface VueMethods{ | |
| [n: string]: Function; | |
| } | |
| interface VueAttributes{ |
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++; |
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
| export class Storage{ | |
| static STORAGE_KEY:string = 'todos-vuejs'; | |
| static todos:any = null; | |
| static fetch(){ | |
| if( !Storage.todos ){ | |
| Storage.todos = JSON.parse( localStorage.getItem( Storage.STORAGE_KEY ) || '[]' ); | |
| } | |
| return Storage.todos; | |
| } |
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
| export class Storage{ | |
| static STORAGE_KEY:string = 'todos-vuejs'; | |
| static todos:any = null; | |
| static fetch(){ | |
| if( !Storage.todos ){ | |
| Storage.todos = JSON.parse( localStorage.getItem( Storage.STORAGE_KEY ) || '[]' ); | |
| } | |
| return Storage.todos; | |
| } |
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
| /// <reference path='../../../tools/vue/vue.0.10.0RC.d.ts'/> | |
| var Router:any; | |
| module app{ | |
| export module sorting{ | |
| export var ALL = 'all'; | |
| export var ACTIVE = 'active'; | |
| export var COMPLETED = 'completed'; |
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
| declare var Vue:any; | |
| declare var Router:any; | |
| interface ToDo{ | |
| title:string; | |
| completed:boolean; | |
| $data?:any; | |
| } | |
| module app{ |
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
| //install--> npm install -g casperjs | |
| //run --> casperjs svgpath2point.js | |
| var casper = require('casper').create(); | |
| casper.start(); | |
| var d = "M 226 159.333333333333 C 350.816352746667 159.333333333333 452 123.665351484444 452 79.6666666666667 C 452 35.667981848889 350.816352746667 0 226 0 C 101.183647253333 0 0 35.667981848889 0 79.6666666666667 C 0 123.665351484444 101.183647253333 159.333333333333 226 159.333333333333 Z"; | |
| casper.then( function() { |
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
| var gulp = require( 'gulp' ), | |
| component = require( 'gulp-component' ), | |
| tsc = require( 'gulp-typescript-compiler' ); | |
| gulp.task( 'default' , [ 'ts' ] , function (){ | |
| gulp.src( 'component.json' ) | |
| .pipe( component( { | |
| standalone: true | |
| } ) ) | |
| .pipe( gulp.dest( 'build' ) ) |
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
| module foo{ | |
| export class Bar{ | |
| //private member age | |
| private age:number = 6; | |
| name:string = "Bob"; | |
| } | |
| export class Foo extends Bar{ |