How to have multiple data-bind attributes on one element?

Like this:

<a data-bind="html: name, attr: { href: url }">

You use comma-separated bindings – the attribute is the same as passing an object:

{
    html: name, 
    attr: { href: url }
}

Or, if you’re asking about multiple attr bindings at once:

<a data-bind="html: name, attr: { href: url, 'data-prop': FullName }">

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)