Skip to content

Commit 87df3f7

Browse files
committed
Update to angular 53 & TS 1.7.5, Fix #19
1 parent 0cd5327 commit 87df3f7

File tree

16 files changed

+27
-7755
lines changed

16 files changed

+27
-7755
lines changed

examples/counter/components/Counter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, View} from 'angular2/angular2';
1+
import {Component, View} from 'angular2/core';
22

33
@Component({
44
selector: 'counter',

examples/counter/containers/App.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
import {Component, View, onDestroy} from 'angular2/angular2';
1+
import {Component, View, Inject} from 'angular2/core';
22
import {bindActionCreators} from 'redux';
33
import {Counter} from '../components/Counter';
44
import * as CounterActions from '../actions/CounterActions';
5-
import { Inject } from 'angular2/angular2';
65

76
@Component({
8-
selector: 'root',
9-
lifecycle: [onDestroy]
7+
selector: 'root'
108
})
119
@View({
1210
directives: [Counter],
1311
template: `
1412
<counter [counter]="counter"
1513
[increment]="increment"
1614
[decrement]="decrement"
17-
[increment-if-odd]="incrementIfOdd"
18-
[increment-async]="incrementAsync">
15+
[incrementIfOdd]="incrementIfOdd"
16+
[incrementAsync]="incrementAsync">
1917
</counter>
2018
`
2119
})

examples/counter/devTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
22
import React, { Component } from 'react';
3-
import {bind} from 'angular2/angular2';
3+
import {bind} from 'angular2/core';
44

55
let devTools = bind('devTools').toFactory(() => {
66
return {

examples/counter/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import {bootstrap} from 'angular2/angular2';
2-
import {bind} from 'angular2/di';
1+
import {bootstrap} from 'angular2/bootstrap';
32
import App from './containers/App';
43
import configureStore from './store/configureStore';
54
const provider = require('ng2-redux').provider;

examples/counter/tsconfig.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"experimentalDecorators": true,
1212
"sourceMap": true,
1313
"listFiles": true,
14-
"moduleResolution": "classic",
14+
"moduleResolution": "node",
1515
"outDir": "dist"
1616
},
1717
"filesGlob": [
@@ -21,21 +21,11 @@
2121
"files": [
2222
"./actions/CounterActions.ts",
2323
"./components/Counter.ts",
24-
"./components/hello.ts",
2524
"./containers/App.ts",
2625
"./index.ts",
2726
"./reducers/counter.ts",
2827
"./reducers/index.ts",
2928
"./store/configureStore.ts",
30-
"./typings/_custom/browser.d.ts",
31-
"./typings/_custom/custom.d.ts",
32-
"./typings/_custom/ng2.d.ts",
33-
"./typings/_custom/webpack.d.ts",
34-
"./typings/angular2/angular2.d.ts",
35-
"./typings/es6-promise/es6-promise.d.ts",
36-
"./typings/redux/redux.d.ts",
37-
"./typings/rx/rx-lite.d.ts",
38-
"./typings/rx/rx.d.ts",
3929
"./typings/tsd.d.ts"
4030
]
4131
}

examples/counter/typings/_custom/browser.d.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
/// <reference path="browser.d.ts" />
2-
/// <reference path="ng2.d.ts" />
3-
/// <reference path="webpack.d.ts" />
1+

0 commit comments

Comments
 (0)