Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Trouble Shooting Issue #13 #20 #27

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dist/
typings/
npm-debug.log
.DS_Store
.idea
demo/*.js
7 changes: 5 additions & 2 deletions demo/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import {Component} from 'angular2/core';

@Component({
selector: 'app',
template: `<div>Hello from {{name}}</div>`
template: `<div>Hello from {{name}} {{id}}</div>`
})

export class App {
name: string;
id: string;

constructor(){
this.name = 'Angular2 Electron!';
this.id = "Good to see you";
setTimeout(() => {
this.name = 'Angular2 Electron!!!';
},1000);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"clean": "rimraf dist",
"typings-install": "typings install",
"setup": "npm install --no-optional && npm run typings-install",
"setup-demo": "npm install --no-optional angular2@2.0.0-beta.12 es6-promise@^3.1.2 es6-shim@0.35.0 reflect-metadata@0.1.2 rxjs@5.0.0-beta.2 zone.js@^0.6.6",
"setup-demo": "npm install --no-optional angular2@2.0.0-beta.12 es6-promise@^3.1.2 es6-shim@0.35.0 reflect-metadata@0.1.2 rxjs@5.0.0-beta.2 zone.js@0.6.6",
"build": "npm run clean && tsc",
"build_demo": "tsc typings/browser.d.ts demo/main.ts demo/app_ui.ts --module commonjs -t es5 --experimentalDecorators --emitDecoratorMetadata",
"build_demo": "tsc typings/index.d.ts demo/main.ts demo/app_ui.ts --module commonjs -t es5 --experimentalDecorators --emitDecoratorMetadata",
"test": "echo Not supported yet",
"demo": "npm run build && npm run build_demo && electron ./demo",
"start": "npm run demo"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "node"
},
"files": [
"typings/browser.d.ts",
"typings/index.d.ts",
"./src/renderer.ts",
"./src/main.ts"
]
Expand Down
2 changes: 1 addition & 1 deletion typings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@angular2/electron",
"devDependencies": {},
"ambientDependencies": {
"globalDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2",
"github-electron": "github:DefinitelyTyped/DefinitelyTyped/github-electron/github-electron.d.ts#f16c4922a7dd6d359a197e4cc5103463ba68cf9e",
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#138ad74b9e8e6c08af7633964962835add4c91e2"
Expand Down