Add prefix property of ProjectConfiguration Interface to documentation and intellisense options #30369
Optiq01
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a generator that creates Angular components and just spent around 6 hours or so getting to the bottom of how to fetch the target app's / library's prefix to write into the component's selector property. Long story short the
getProjects().get()
andreadProjectConfiguration()
methods both return aprefix
property which I initially didn't expect to be there from the other info I found that had me trying things liketargets?.build?.options?.prefix
. I eventually console.log() the entire object rather than investigating throughbuild
andoptions
like I had been to see that there's aprefix
property at the top level of the object...... so all I had to do the entire time ismyProjectVar.prefix
face palm. I think adding the fact that that property exists on the object we get back might help a lot of other people building component generators. I was thinking to just create a prompt for it so it can be entered manually but figured there HAD TO BE a way and it was literally that simple. I just find it odd that neither the documentation or the list of things that pop up after we hit.
showing what's available on that object.Beta Was this translation helpful? Give feedback.
All reactions