2
I’m starting with Knockoutjs and would like to know if you have how to attach a link received by AJAX/JSON in a tag <a href="meu link aqui">Meu link</a>
.
HTML:
<div data-bind="text: url"></div>
<hr/>
<a data-bind="href: url">Google</a>
Javascript:
function App() {
this.url = "http://www.google.com/";
}
ko.applyBindings( new App() );
No Jsfiddle: http://jsfiddle.net/3V53L/
Very simple. I need to read the documentation. =)
– user7261