Can I pass a variable in a template binding?

前端 未结 4 554
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-15 10:45

I know this isn\'t a good method to use long term, but for troubleshooting, is there any way I can pass a simple string while binding a template and then access it as a variable

4条回答
  •  温柔的废话
    2021-02-15 10:54

    For people reading on later versions of knockout, this would appear to be a good usecase for components vs templates.

提交回复
热议问题