diff options
author | CNlucius <lukai1@huawei.com> | 2016-09-13 11:40:12 +0800 |
---|---|---|
committer | CNlucius <lukai1@huawei.com> | 2016-09-13 11:41:53 +0800 |
commit | b731e2f1dd0972409b136aebc7b463dd72c9cfad (patch) | |
tree | 5107d7d80c19ad8076c2c97c2b5ef8d1cf3ab903 /framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-07-form-styling.html | |
parent | ee93993458266114c29271a481ef9ce7ce621b2a (diff) |
ONOSFW-171
O/S-SFC-ONOS scenario documentation
Change-Id: I51ae1cf736ea24ab6680f8edca1b2bf5dd598365
Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-07-form-styling.html')
-rw-r--r-- | framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-07-form-styling.html | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-07-form-styling.html b/framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-07-form-styling.html deleted file mode 100644 index 1b6ab867..00000000 --- a/framework/src/onos/web/gui/src/main/webapp/_sdh/ng-examples/ch04-07-form-styling.html +++ /dev/null @@ -1,45 +0,0 @@ -<!DOCTYPE html> -<html ng-app="notesApp"> -<head> - <title>Notes App</title> - <script src="../../tp/angular.js"></script> - <style> - .username.ng-valid { - background-color: greenyellow; - } - .username.ng-dirty.ng-invalid-required { - background-color: hotpink; - } - .username.ng-dirty.ng-invalid-minlength { - background-color: lightpink; - } - </style> -</head> -<body ng-controller="MainCtrl as ctrl"> - -<form ng-submit="ctrl.submit()" name="myForm"> - <input type="text" - class="username" - name="uname" - placeholder="username" - ng-model="ctrl.user.username" - required - ng-minlength="4"/> - - <input type="submit" - value="Submit" - ng-disabled="myForm.$invalid"/> -</form> - -<script type="text/javascript"> - angular.module('notesApp', []) - .controller('MainCtrl', [function () { - var self = this; - self.submit = function () { - console.log('Submit: ', self.user); - }; - }]); -</script> - -</body> -</html> |