Schematics file name templates should support more complex variable types #12446
Labels
area: devkit/schematics
feature: insufficient votes
Label to add when the not a sufficient number of votes or comments from unique authors
feature
Issue that requests a new feature
severity2: inconvenient
Milestone
Bug Report or Feature Request (mark with an
x
)Desired functionality
Would like to be able to refer to objects (and access their fields) in file name templates. For example, I have a
Name
class with several different formats of a name. I'd like to be able to refer to them like__name.snake__.ts
in file (and directory) name templates.My case in particular is for referencing objects, but what about other things like accessing an element of a list (
__fileNames[0]__.ts
), and so on? Supporting other complex types might also be useful.The text was updated successfully, but these errors were encountered: