You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schematics/ng-component/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template
Copy file name to clipboardExpand all lines: schematics/ng-component/schema.json
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,10 @@
89
89
"none"
90
90
]
91
91
},
92
+
"type": {
93
+
"type": "string",
94
+
"description": "Append a custom type to the component's filename. For example, if you set the type to `container`, the file will be named `my-component.container.ts`."
95
+
},
92
96
"skipTests": {
93
97
"type": "boolean",
94
98
"description": "When true, does not create \"spec.ts\" test files for the new component.",
@@ -109,6 +113,11 @@
109
113
"format": "html-selector",
110
114
"description": "The selector to use for the component."
111
115
},
116
+
"skipSelector": {
117
+
"type": "boolean",
118
+
"default": false,
119
+
"description": "Skip the generation of an HTML selector for the component."
120
+
},
112
121
"module": {
113
122
"type": "string",
114
123
"description": "Allows specification of the declaring module.",
@@ -119,6 +128,16 @@
119
128
"default": false,
120
129
"description": "When true, the declaring NgModule exports this component."
121
130
},
131
+
"exportDefault": {
132
+
"type": "boolean",
133
+
"default": false,
134
+
"description": "Use a default export for the component in its TypeScript file instead of a named export."
135
+
},
136
+
"ngHtml": {
137
+
"type": "boolean",
138
+
"default": false,
139
+
"description": "Generate component template files with an '.ng.html' file extension instead of '.html'."
0 commit comments