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