PingCntl.$inject = ['$xhr'];
</script>
<div ng:controller="PingCntl">
- <input type="text" name="function" value="ping" size="20"/><br/>
- <input type="text" name="args" value="localhost" size="10"/><br/>
- <tt>{{url}}</tt>
+ <input type="text" name="function" value="ping" size="20"/>
+ <input type="text" name="args" value="127.0.0.1" size="10"/>
<button ng:click="fetch()">fetch</button>
<button ng:click="clear()">clear</button>
- <pre>code={{code}}</pre>
- <pre>response={{response}}</pre>
+ <pre>
+url={{url}}
+code={{code}}
+response={{response}}
+ </pre>
</div>
</body>
</html>