@@ -13,7 +13,7 @@ export default Blueprint.extend({
13
13
description : '' ,
14
14
15
15
availableOptions : [
16
- { name : 'flat' , type : Boolean , default : false } ,
16
+ { name : 'flat' , type : Boolean } ,
17
17
{ name : 'inline-template' , type : Boolean , aliases : [ 'it' ] } ,
18
18
{ name : 'inline-style' , type : Boolean , aliases : [ 'is' ] } ,
19
19
{ name : 'prefix' , type : String , default : null } ,
@@ -81,23 +81,27 @@ export default Blueprint.extend({
81
81
82
82
options . inlineStyle = options . inlineStyle !== undefined ?
83
83
options . inlineStyle :
84
- this . project . ngConfigObj . get ( 'defaults.inline.style ' ) ;
84
+ this . project . ngConfigObj . get ( 'defaults.component.inlineStyle ' ) ;
85
85
86
86
options . inlineTemplate = options . inlineTemplate !== undefined ?
87
87
options . inlineTemplate :
88
- this . project . ngConfigObj . get ( 'defaults.inline.template' ) ;
88
+ this . project . ngConfigObj . get ( 'defaults.component.inlineTemplate' ) ;
89
+
90
+ options . flat = options . flat !== undefined ?
91
+ options . flat :
92
+ this . project . ngConfigObj . get ( 'defaults.component.flat' ) ;
89
93
90
94
options . spec = options . spec !== undefined ?
91
95
options . spec :
92
- this . project . ngConfigObj . get ( 'defaults.spec. component' ) ;
96
+ this . project . ngConfigObj . get ( 'defaults.component.spec ' ) ;
93
97
94
98
options . viewEncapsulation = options . viewEncapsulation !== undefined ?
95
99
options . viewEncapsulation :
96
- this . project . ngConfigObj . get ( 'defaults.viewEncapsulation' ) ;
100
+ this . project . ngConfigObj . get ( 'defaults.component. viewEncapsulation' ) ;
97
101
98
102
options . changeDetection = options . changeDetection !== undefined ?
99
103
options . changeDetection :
100
- this . project . ngConfigObj . get ( 'defaults.changeDetection' ) ;
104
+ this . project . ngConfigObj . get ( 'defaults.component. changeDetection' ) ;
101
105
102
106
return {
103
107
dynamicPath : this . dynamicPath . dir . replace ( this . dynamicPath . appRoot , '' ) ,
0 commit comments