Check String Contains SubString in KnockOut JS

1,700 views
Skip to first unread message

magesh...@ziffity.com

unread,
Feb 17, 2017, 7:21:22 AM2/17/17
to KnockoutJS
hi i want to check 
<!-- ko if: getShippingMethodTitle().contains('Pickup') --> 
in above line i want to check whether whole string contains substring... But it returns nothing. 
may i know how to achieve this in knockout js???

Gunnar Liljas

unread,
Feb 17, 2017, 9:29:12 AM2/17/17
to knock...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "KnockoutJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knockoutjs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages