I'm a newbie. How to pass parameters and based on them create a condition in markup? I have such a component
{% component 'demoTodo' %}
but I want to use it in two variations, if mobile = true, then another markup, if false another
{% component 'demoTodo' mobile=true %} or {% component 'demoTodo' mobile=false %}
{% if mobile == true %}
...
{% else %
...
{% endif %}
How can this be done?
You need to pass
component propertyand retrieve it inonRendermethod and again need to pass it to markup.You can follow this process to get
mobilevariable to yourmarkup.if any doubt please comment.