mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
parent
c0b78478a0
commit
59ae8adb3c
1 changed files with 10 additions and 10 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns:ng="http://angularjs.org">
|
||||
<head ng-app>
|
||||
<html xmlns:ng="http://angularjs.org" ng-app>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="style.css"/>
|
||||
<script type="text/javascript" src="../../../src/angular-bootstrap.js"></script>
|
||||
</head>
|
||||
|
|
@ -26,22 +26,22 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>hidden</td>
|
||||
<td><input type="hidden" ng-model="text.hidden" value="hiddenValue" /></td>
|
||||
<td><input type="hidden" ng-model="text.hidden" ng-init="text.hidden='hiddenValue'" /></td>
|
||||
<td>text.hidden={{text.hidden}}</td>
|
||||
</tr>
|
||||
<tr><th colspan="3">Input selection field</th></tr>
|
||||
<tr id="gender-box">
|
||||
<tr id="gender-box" ng-init="gender='male'">
|
||||
<td>radio</td>
|
||||
<td>
|
||||
<input type="radio" ng-model="gender" value="female"/> Female <br/>
|
||||
<input type="radio" ng-model="gender" value="male" checked="checked"/> Male
|
||||
<input type="radio" ng-model="gender" value="male"/> Male
|
||||
</td>
|
||||
<td>gender={{gender}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>checkbox</td>
|
||||
<td>
|
||||
<input type="checkbox" ng-model="checkbox.tea" checked value="on"/> Tea<br/>
|
||||
<td ng-init="checkbox={'tea': true, 'coffee': false}">
|
||||
<input type="checkbox" ng-model="checkbox.tea" value="on"/> Tea<br/>
|
||||
<input type="checkbox" ng-model="checkbox.coffee" value="on"/> Coffe
|
||||
</td>
|
||||
<td>
|
||||
|
|
@ -75,10 +75,10 @@
|
|||
<td>ng-change<br/>ng-click</td>
|
||||
<td ng-init="button.count = 0; form.count = 0;">
|
||||
<form ng-submit="form.count = form.count + 1">
|
||||
<input type="button" value="button" ng-change="button.count = button.count + 1"/> <br/>
|
||||
<input type="submit" value="submit input" ng-change="button.count = button.count + 1"/><br/>
|
||||
<input type="button" value="button" ng-click="button.count = button.count + 1"/> <br/>
|
||||
<input type="submit" value="submit input" ng-click="button.count = button.count + 1"/><br/>
|
||||
<button type="submit">submit button</button>
|
||||
<input type="image" src="" ng-change="button.count = button.count + 1"/><br/>
|
||||
<input type="image" src="" ng-click="button.count = button.count + 1"/><br/>
|
||||
<a href="" ng-click="button.count = button.count + 1">action</a>
|
||||
</form>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Reference in a new issue