Closed mjstahl closed 5 years ago
Given the following binding:
childProperty:raw={{#if(isSomething)}}"something"{{else}}"something else"{{/if}}
In the DOM the binding is rendered as follows:
child:u:property:raw=""something""
On the child component childProperty is defined as type: 'string'. The value of childProperty is '' (empty-string).
childProperty
type: 'string'
''
I was informed that this syntax is not supported by stache, but there is also no warning or error on the console.
If this is not valid syntax, we should inform the developer with a warning or an error.
This probably needs to be fixed in can-view-parser
Should this issue be moved to can-view-parser ?
can-view-parser
Given the following binding:
childProperty:raw={{#if(isSomething)}}"something"{{else}}"something else"{{/if}}
In the DOM the binding is rendered as follows:
child:u:property:raw=""something""
On the child component
childProperty
is defined astype: 'string'
. The value ofchildProperty
is''
(empty-string).I was informed that this syntax is not supported by stache, but there is also no warning or error on the console.
If this is not valid syntax, we should inform the developer with a warning or an error.