add documentation for cdn and bower

This commit is contained in:
Leo Horie 2014-03-22 15:53:44 -04:00
parent ab494829c6
commit 0ef8c8beb6
19 changed files with 173 additions and 14 deletions

View file

@ -72,11 +72,11 @@
<p>You can make anonymous modules out of existing classes</p>
<pre><code class="lang-javascript">//controller class
var dashboardController = function() {
this.greeting = &quot;Hello&quot;;
this.greeting = &quot;Hello&quot;;
};
//view class
var dashboardView = function() {
var dashboardView = function(ctrl) {
return m(&quot;h1&quot;, ctrl.greeting);
};
@ -88,11 +88,11 @@ var dashboard = {}
//controller class
dashboard.controller = function() {
this.greeting = &quot;Hello&quot;;
this.greeting = &quot;Hello&quot;;
};
//view class
dashboard.view = function() {
dashboard.view = function(ctrl) {
return m(&quot;h1&quot;, ctrl.greeting);
};