I'm new to angular and recently bought a theme called Metronic. I installed all the required stuff including the latest angular CLI version. When I run the command ng generate component test, it will create a test folder but only a test.ts file with no html and css.
In all the examples that I've seen, this command will always create html, css, ts... so I am confused why it would only create the ts file for me?
Any help appreciated, Thank you
In angular6 Inside the angular.json file you need to change "@schematics/angular:component {}"
make: "inlineStyle": false, "inlineTemplate": false,
should look like this:
"@schematics/angular:component": {
"spec": false,
"inlineStyle": false,
"inlineTemplate": false,
"prefix": "app",
"styleext": "css"
},
this will create your all three files (html,ts and css)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With