Created
June 21, 2016 07:44
-
-
Save nonZero/4f6b3f95f276adb491bcae56c1ca7097 to your computer and use it in GitHub Desktop.
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 lang="en" ng-app> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Super Angular!!!</title> | |
<style> | |
.ng-cloak { | |
display: none; | |
} | |
</style> | |
</head> | |
<body> | |
<p> | |
Angular is an MVC framework. | |
</p> | |
<div ng-if="false"> | |
LOADING.... | |
</div> | |
<div id="foo" class="ng-cloak"> | |
<div ng-init="x=10;y=8"> | |
<input type="number" ng-model="x"> | |
+ | |
<input type="number" ng-model="y"> | |
{{ x + y }} | |
<div ng-show="(x + y) % 2 == 0"> | |
KUKU | |
</div> | |
<div ng-show="(x + y) % 2"> | |
AHA | |
</div> | |
</div> | |
</div> | |
<script src="angular.js"></script> | |
<script src="app.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment