I know you're able to generate certain files based on options (like the external styles and external html files for components), maybe I can do something similar. Have different template files and generate one based on an option 🤔. That way the class is clean and only the file name changes
October 16, 2025 at 11:36 AM
I know you're able to generate certain files based on options (like the external styles and external html files for components), maybe I can do something similar. Have different template files and generate one based on an option 🤔. That way the class is clean and only the file name changes
Oh okay thanks. I've verified the behaviour, I guess what I was expecting was that you can click from anywhere and it would generate in the predefined path.
October 16, 2025 at 9:52 AM
Oh okay thanks. I've verified the behaviour, I guess what I was expecting was that you can click from anywhere and it would generate in the predefined path.
Hi, I've made some progress but need help with 2 things. Sometimes my file name is something like (blog) or [productId] and I can't find a way with the inbuilt helpers to remove [] or () in the template leading to `class (blog)Page {}`. Second, how does the pathsWithPredefinedSchematic work?
October 16, 2025 at 8:01 AM
Hi, I've made some progress but need help with 2 things. Sometimes my file name is something like (blog) or [productId] and I can't find a way with the inbuilt helpers to remove [] or () in the template leading to `class (blog)Page {}`. Second, how does the pathsWithPredefinedSchematic work?
Ah I see, essentially it runs custom commands, got it. I tried to create a custom schematic using a template and also starting from scratch but it was tricky; there are a lot of options. Some docs would help, maybe you could point me in the right direction for how to do that.
October 15, 2025 at 2:18 PM
Ah I see, essentially it runs custom commands, got it. I tried to create a custom schematic using a template and also starting from scratch but it was tricky; there are a lot of options. Some docs would help, maybe you could point me in the right direction for how to do that.
Sure, I was under the impression that I can add custom schematics I use in my project as long as they work with ng generate. The analogjs schematics also use the angular cli and I thought there's a way to make them appear when I right click a directory and click the extension's "Generate a file".
October 15, 2025 at 1:54 PM
Sure, I was under the impression that I can add custom schematics I use in my project as long as they work with ng generate. The analogjs schematics also use the angular cli and I thought there's a way to make them appear when I right click a directory and click the extension's "Generate a file".