Live template variable expression depending on other variable

I am trying to create a live template for an Angular service:

angular.service("$serviceName$", $serviceNameUpper$);


I would like to have "serviceNameUpper" be the capitalized version of "serviceName".

I tried setting both "Expression" and "Default Value" to capitalize($serviceName$), with and without the "Skip if defined" checkbox checked, but it doesn't seem to have any effect - the variable is not expanded.

Is this possible?

3 comments
Comment actions Permalink

Hi there,

Screenshots please of what you have tried

0
Comment actions Permalink

You need to use variable without $ around it.

screen01.png

0
Comment actions Permalink

Great, thank you!!

0

Please sign in to leave a comment.