This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://code.angularjs.org/angular-0.9.16.min.js" ng:autobind></script> | |
<script> | |
var SERVICE_URL = "http://blockexplorer.com/q/getdifficulty"; | |
function FormController($xhr) { | |
this.posint = /^\d+/; | |
this.fetch = function() { | |
var self = this; | |
$xhr('', SERVICE_URL, function(code, response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html xmlns:ng="http://angularjs.org/"> | |
<head> | |
<title>angular invoice demo</title> | |
<script src="http://code.angularjs.org/angular-0.9.10.html" ng:autobind></script> | |
</head> | |
<body> | |
<table ng:init="invoice= {items:[{qty:10, description:'gadget', cost:9.95}]}"> | |
<tr><th>Qty</th><th>Description</th><th>Cost</th><th>Total</th><th></th></tr> | |
<tr ng:repeat="item in invoice.items"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<!-- This should be the simplest possible jQuery based CouchApp. Install by uploading to a design document in Futon or putting in _attachments/index.html and running `couchapp push` --> | |
<head><title>Tiny CouchApp</title></head> | |
<body ng:init="dbs = couch.allDbs()"> | |
<h1>Tiny CouchApp</h1> | |
<ul id="databases"> | |
<li ng:repeat="db in dbs"><a href="/_utils/database.html?{{db}}">{{db}}</a></li> | |
</ul> | |
</body> |
NewerOlder