<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<script src="http://code.angularjs.org/angular-1.0.0rc4.min.js"></script>
<script src="http://code.angularjs.org/angular-resource-1.0.0rc4.min.js"></script>
<!doctype html>
<html lang="en" ng-app="imageGallery">
<head>
<meta charset="utf-8">
<title>AngularJS Image Gallery</title>
</head>
<body class="container" ng-controller="GalleryController">
<img src="http://angularjs.org/img/AngularJS-small.png">
<div class="imageContainer span12">
<!-- if the directive is creating an isolate scope, then I would make it an "element" directive in case you have multiple directives -->
<full-image img-src="selectedImageUrl"></full-image>
<div>{{selectedImageUrl}}</div>
<div>
<img ng-repeat="photo in photos" ng-src="{{photo.thumbUrl}}" ng-click="selectImg(photo)">
</div>
</div>
</body>
</html>