This repository was archived by the owner on Dec 4, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +4
-8
lines changed Expand file tree Collapse file tree 6 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ var _excludeMatchers = _excludePatterns.map(function(excludePattern){
85
85
86
86
var _exampleBoilerplateFiles = [
87
87
'a2docs.css' ,
88
- 'copy-aot.js' ,
89
88
'package.json' ,
90
89
'styles.css' ,
91
90
'systemjs.config.js' ,
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ wallaby.js
11
11
12
12
_test-output
13
13
** /ts /** /* .js
14
- ** /js /copy-aot.js
15
14
** /js-es6 * /** /* .js
16
15
** /ts-snippets /** /* .js
17
16
* .d.ts
Original file line number Diff line number Diff line change 19
19
"build:webpack" : " rimraf dist && webpack --config config/webpack.prod.js --bail" ,
20
20
"build:cli" : " ng build --no-progress" ,
21
21
"build:aot" : " ngc -p tsconfig-aot.json && rollup -c rollup-config.js" ,
22
- "postbuild:aot" : " node copy-aot.js" ,
23
22
"build:babel" : " babel app -d app --extensions \" .es6\" --source-maps" ,
24
23
"copy-dist-files" : " node ./copy-dist-files.js" ,
25
24
"i18n" : " ng-xi18n"
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class HeroDetailComponent implements OnInit {
47
47
// #enddocregion graphql-query-new-field
48
48
49
49
this . heroSubscription = this . heroObservable . subscribe ( ( { data} ) => {
50
- this . hero = data . hero ;
50
+ this . hero = Object . assign ( { } , data . hero ) ;
51
51
} ) ;
52
52
} ) ;
53
53
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class HeroDetailComponent implements OnInit {
47
47
} ) ;
48
48
49
49
this . heroSubscription = this . heroObservable . subscribe ( ( { data} ) => {
50
- this . hero = data . hero ;
50
+ this . hero = Object . assign ( { } , data . hero ) ;
51
51
} ) ;
52
52
// #enddocregion graphql-query
53
53
} ) ;
@@ -56,7 +56,7 @@ export class HeroDetailComponent implements OnInit {
56
56
57
57
// #docregion save
58
58
save ( ) : void {
59
-
59
+
60
60
this . apollo . mutate ( {
61
61
mutation : gql `
62
62
mutation updateHero($id: Int!, $name: String!) {
Original file line number Diff line number Diff line change 28
28
"apollo-angular" : " ^0.9.0-rc.6" ,
29
29
"apollo-client" : " ^0.8.0" ,
30
30
"core-js" : " ^2.4.1" ,
31
- "graphql" : " ^0.8.2 " ,
31
+ "graphql" : " ^0.9.0 " ,
32
32
"graphql-tag" : " ^1.1.2" ,
33
33
"graphql-tools" : " ^0.9.1" ,
34
34
"rxjs" : " 5.0.1" ,
56
56
"babel-preset-es2015" : " ^6.16.0" ,
57
57
"canonical-path" : " 0.0.2" ,
58
58
"concurrently" : " ^3.0.0" ,
59
- "copy" : " ^0.3.0" ,
60
59
"css-loader" : " ^0.26.1" ,
61
60
"extract-text-webpack-plugin" : " 2.0.0-beta.5" ,
62
61
"file-loader" : " ^0.9.0" ,
You can’t perform that action at this time.
0 commit comments