How to run KnockoutJs on local server(wamp) with PHP?
<p>Am newbie in <strong>KnockoutJs</strong>, i tried all tutorials on its official website.<br>
Now i want to run all the practical tutorial on my local machine, i have downloaded <a href="http://github.com/downloads/SteveSanderson/knockout/knockout-2.1.0.js" rel="nofollow">knockout-2.1.0.js</a>.</p>

<p>I tried this code but its not working on local machine</p>

<pre><code>index.php
---------
&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Knockout&lt;/title&gt;
        &lt;script src="js/knockout-2.1.0.js"&gt;&lt;/script&gt;
        &lt;link rel="stylesheet" href="css/styles.css" /&gt;
        &lt;script&gt;
        // This is a simple *viewmodel* - JavaScript that defines the data and behavior of your UI
        function AppViewModel() {
            this.myname= ko.observable("Frank");
            this.myage= ko.observable("26");

            this.mydetails= ko.computed(function() {
                var x;
                return this.myname() + ", and my age is " + this.myage() + 'yr. old.';
            }, this);

            this.capitalizeMyName = function() {
                var currentVal = this.myname();        // Read the current value
                this.myname(currentVal.toUpperCase()); // Write back a modified value
            };
        }

        // Activates knockout.js
        ko.applyBindings(new AppViewModel());
        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;p&gt;New Application&lt;/p&gt;
        &lt;!-- This is a *view* - HTML markup that defines the appearance of your UI --&gt;
        &lt;p&gt;My Name: &lt;strong data-bind="text: myname"&gt;&lt;/strong&gt;&lt;/p&gt;
        &lt;p&gt;My Age: &lt;strong data-bind="text: myage"&gt;&lt;/strong&gt;&lt;/p&gt;

        &lt;p&gt;My Name: &lt;input data-bind="value: myname" /&gt;&lt;/p&gt;
        &lt;p&gt;My Age: &lt;input data-bind="value: myage" /&gt;&lt;/p&gt;

        &lt;p&gt;Full Detalis: &lt;strong&gt;Hi, my name is &lt;text data-bind="text: mydetails"&gt;&lt;/strong&gt;&lt;/p&gt;

        &lt;button data-bind="click: capitalizeMyName"&gt;Go caps&lt;/button&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>If Someone has knowledge or idea about this, then suggest me. Thanks!</p>
