Created
December 18, 2015 18:08
-
-
Save anonymous/7836771be5b6a7834440 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/futehi
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> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="app"> | |
<div ng-controller="NameController"> | |
{{ name }} | |
{{ child }} | |
<div ng-controller="ChildController"> | |
{{ name }} | |
{{ child }} | |
</div> | |
<input type="text" ng-model="child"> | |
</div> | |
<script id="jsbin-javascript"> | |
angular | |
.module('app', []) | |
.controller('NameController', function($scope) { | |
$scope.name = "First"; | |
$scope.child = "Child"; | |
}) | |
.controller('ChildController', function($scope) { | |
$scope.name = "Second"; | |
}); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">angular | |
.module('app', []) | |
.controller('NameController', function($scope) { | |
$scope.name = "First"; | |
$scope.child = "Child"; | |
}) | |
.controller('ChildController', function($scope) { | |
$scope.name = "Second"; | |
});</script></body> | |
</html> |
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
angular | |
.module('app', []) | |
.controller('NameController', function($scope) { | |
$scope.name = "First"; | |
$scope.child = "Child"; | |
}) | |
.controller('ChildController', function($scope) { | |
$scope.name = "Second"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment