Skip to content

Instantly share code, notes, and snippets.

@olivier-sabban
Created November 2, 2014 14:22
<!DOCTYPE html >
<html ng-app>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
input {
background-color: #ff0000;
color: #fff;
}
</style>
</head>
<body>
<div ng-controller="toDoCtrl">salut comment y lé
{{test}}
<br/>
<input type="text" ng-model="test">
</div>
<script id="jsbin-javascript">
function toDoCtrl($scope){
$scope.test="olivier";
}
</script>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html >
<html ng-app>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"><\/script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div ng-controller="toDoCtrl">salut comment y lé
{{test}}
<br/>
<input type="text" ng-model="test">
</div>
</body>
</html></script>
<script id="jsbin-source-css" type="text/css">input {
background-color: #ff0000;
color: #fff;
}</script>
<script id="jsbin-source-javascript" type="text/javascript">function toDoCtrl($scope){
$scope.test="olivier";
}
</script></body>
</html>
input {
background-color: #ff0000;
color: #fff;
}
function toDoCtrl($scope){
$scope.test="olivier";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment