Template Naming Convention Causing Issues

Hello,

This is more an observation that might want to be addressed.

I was creating a new template and I used a period in the name 'T.C. Display'. Looking back at this, probably not the best idea, but here we are. After doing so made some internal properties and when attempting to bind to those properties I was receiving an error 'Unable to find component for path: 'T.C. Display.propertyName'. Looking back, I can see why this caused an issue, but if any special character such as the period are going to cause an issue it might be a good idea to prevent it from being used in naming conventions.

I don’t think you’re having the issue that you believe you are, or you’ve made a typo.

I doubt very much that you’re component is named 'T.C. Display.propertyName' the .propertyName shouldn’t be there

I tested this few times, with different templates. If there is a period in the name of the template, I was not able to bind anything to the internal properties of the template. I was receiving an error 'Unable to find component for path: T.C. Display.tag_path' ( the property name = tag_path)
I simply change the name of the template, remove the periods and everything works as it should.
property binding = TC Display.tag_path

I think that's just the path, and in this case it's looking for a component named T.

@David_Duquette I'd stick to alpha characters + '_' and maybe '-'.
I stay clear of everything else, including spaces.

1 Like