var module = angular.module('compile-sample', []);
    
module.controller("MainController", function($scope) {
	$scope.recipies = 
	[{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/44/447324ae-6893-456a-9a1f-72217237d3d5_tn-80x80.jpg",name:"Ramequins fondants au chocolat"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/a8/a860ca6e-8fbf-468e-abfa-2c1432a9bac2_tn-80x80.jpg",name:"Tiramisu (recette originale)"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/0f/0f26da6f-a490-45eb-8062-9365a2d75f15_tn-80x80.jpg",name:"'the' tarte au citron meringuee"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/83/83883a0f-9ee2-4b8a-bbfe-74cfee70cbec_tn-80x80.jpg",name:"Le crumble aux pommes du chat qui tousse"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/7e/7e38b1da-c290-4e97-8890-a0d51c85dc46_tn-80x80.jpg",name:"Blanquette de veau facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/b3/b348fcd0-3577-408f-9c92-d9aac37c38ff_tn-80x80.jpg",name:"Les timbales de jeanne (saumon a la mousse de courgettes au micro-ondes)"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/88/88a45eda-7720-494e-ac5b-e1bf2c28170b_tn-80x80.jpg",name:"Veritable moelleux au chocolat"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/5f/5f7990d8-a42e-4314-be89-e6e199e44eaf_tn-80x80.jpg",name:"Gateau au yaourt"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/06/06696c38-d8c2-4d39-94b2-a88e7a93a4f1_tn-80x80.jpg",name:"Filet mignon en croute"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/d5/d546258a-cd5c-4604-bd96-05d7f2df0fd7_tn-80x80.jpg",name:"Galette des rois"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/8b/8b49c5b5-e13a-4438-8d6f-e54bda549256_tn-80x80.jpg",name:"Original american cookies de mike"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/6f/6f29fbba-254c-4c22-9abd-d35831ebe1fa_tn-80x80.jpg",name:"Meringue pour les nuls"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/23/239b14fc-5354-494e-8068-2d6fdfc761f4_tn-80x80.jpg",name:"Tarte chocolat - poires facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/73/7337aa5e-5c1f-441f-abbe-231020003632_tn-80x80.jpg",name:"Amour de saumon en papillote"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/d5/d5734d47-1cef-4fc2-aa13-94b693566dd9_tn-80x80.jpg",name:"Bechamel rapide et facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/b3/b3924361-4e65-43c5-b2e7-16882e7211f4_tn-80x80.jpg",name:"Gateau aux pommes facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/47/47db785c-c061-45b6-af43-c811c19efca1_tn-80x80.jpg",name:"Fondant au chocolat"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/a2/a2a42058-5dee-4f2f-8db7-46830b5fe948_tn-80x80.jpg",name:"Canneles bordelais"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/57/5784b766-8f72-47b0-91ea-419605acbb85_tn-80x80.jpg",name:"Lasagnes a la bolognaise"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/c8/c85fa616-bd6a-4b67-9eee-0d1fcd5e4e5e_tn-80x80.jpg",name:"Petits croissants au saumon fume ( toast aperitif )"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/21/217cebb8-132f-45d3-b0c4-ad7061f78ffa_tn-80x80.jpg",name:"Poulet a la moutarde, a l'estragon et aux champignons"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/71/71bf1887-d79d-4584-b48c-f6d53fdb35ca_tn-80x80.jpg",name:"Pain d'epices"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/ca/cacb54dc-3244-4489-9253-2984894a4d1d_tn-80x80.jpg",name:"Pancakes"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/73/73490fc2-8031-445d-a5e6-cc020e8c9d45_tn-80x80.jpg",name:"Cheese cake (gateau au fromage blanc) inratable"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/b6/b61ce055-d0a6-4582-996d-72ff6eb83a07_tn-80x80.jpg",name:"Saute de veau au chorizo"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/50/508d446c-e6b0-44f9-8ead-0e1f03ff8076_tn-80x80.jpg",name:"Mousse au chocolat facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/46/46da6ceb-623a-4e37-86d8-10fcfa81789d_tn-80x80.jpg",name:"Flan patissier traditionnel"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/60/60797c41-afe0-4788-a4dd-79183357ba91_tn-80x80.jpg",name:"Chouquettes"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/58/58d677a6-002a-433b-a7e2-5b5d5af91d35_tn-80x80.jpg",name:"Gateau chocolat ultra rapide (micro-ondes)"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/a4/a4191049-8882-44ab-9c01-9f39f0edba90_tn-80x80.jpg",name:"Gratin dauphinois (recette originale)"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/6f/6f4f3837-a5e3-4107-a613-61e4a7c48519_tn-80x80.jpg",name:"Boeuf bourguignon rapide"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/6c/6c986e2b-5ce6-4d94-9fd5-e5555b1d6a0f_tn-80x80.jpg",name:"Gateau au chocolat des ecoliers"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/14/14a50d49-4ce9-4d02-984b-ebd0007d4ffc_tn-80x80.jpg",name:"Brownie vite fait"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/15/15416267-ede6-4600-9048-07bdfc2460a9_tn-80x80.jpg",name:"Blinis faciles maison"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/ec/ecb033cb-ad47-4c6b-ad96-d1943e9de335_tn-80x80.jpg",name:"Fondant a la creme de marrons et au chocolat"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/fb/fb65e3e4-9c2b-449b-86f2-05cd83e272f1_tn-80x80.jpg",name:"Filet mignon de porc au maroilles"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/d4/d47a3b71-b424-477c-9407-7441998d1a41_tn-80x80.jpg",name:"Tarte thon et tomate"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/67/67f2952b-52a2-4bb5-a146-c7fd6854931f_tn-80x80.jpg",name:"Chevre en feuillete"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/07/079b3497-fdd7-4090-9276-f9c159f02273_tn-80x80.jpg",name:"Tarte aux pommes a l'alsacienne"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/a5/a54c9d32-8b12-4c12-b3e4-76a0e4775225_tn-80x80.jpg",name:"Quiche tatin"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/62/62e178e0-cbf2-42a2-8697-86e9c5634762_tn-80x80.jpg",name:"Hachis parmentier"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/dc/dcfd4455-8c34-4f8a-a6fd-ab7998da12e8_tn-80x80.jpg",name:"Cake sale au jambon et aux olives"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/78/78fc4fa8-8928-4282-8002-49791a67f302_tn-80x80.jpg",name:"Riz au lait de ma maman"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/dd/dd55c97d-e01a-40fe-85b4-3fa0c81ddfa9_tn-80x80.jpg",name:"Roti de porc a la moutarde et au miel"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/84/841329f7-44c6-4591-9df2-dac5c8e37714_tn-80x80.jpg",name:"Lasagnes aux courgettes et au chevre"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/88/885b9ee1-349b-42cd-8f6d-03be5ef27341_tn-80x80.jpg",name:"Fondant au chocolat plus que fondant"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/ee/eeaf18d5-787e-4bb8-a221-32e381d29ecc_tn-80x80.jpg",name:"Pate brisee vite faite"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/60/60aacfa3-732b-452e-9e79-a9dec1d33742_tn-80x80.jpg",name:"Fondant au chocolat maison"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/d2/d2ec4d80-7160-4d6e-b843-398fde272ccd_tn-80x80.jpg",name:"Panna cotta"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/ea/eab9c24d-1d6c-4a68-b16b-a868c0fc08d9_tn-80x80.jpg",name:"Muffins poires pepites de chocolat de nadine"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/da/dae88f8f-5325-4f47-a394-3267688f0f7f_tn-80x80.jpg",name:"Cake au chocolat"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/f5/f59733af-9695-4e0c-bdb3-6e43179fecbc_tn-80x80.jpg",name:"Tarte pommes rapees citrons"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/da/da724511-3d85-4d85-9a3c-bbf7c5e94815_tn-80x80.jpg",name:"Gateau tres rapide au yaourt et au chocolat"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/3f/3fca84d8-eae8-4580-a600-ad737f1b1334_tn-80x80.jpg",name:"Papillote de saumon a la mozzarella"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/68/68f66594-1282-4f8d-8ec5-79c7e79d47bb_tn-80x80.jpg",name:"Quiche lorraine"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/9d/9d64dbc2-a724-454b-a979-c08bdff9e33c_tn-80x80.jpg",name:"Brownies aux noix"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/bd/bd74ab2c-6f34-4c15-903c-6393807702de_tn-80x80.jpg",name:"Gougeres faciles"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/df/df82a7b4-3ad0-4cdf-ada3-19d829f1e1d1_tn-80x80.jpg",name:"Tiramisu aux fraises"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/7f/7f827109-d54a-4a5a-b975-6e83bccbe3b1_tn-80x80.jpg",name:"Pain d'epices facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/1b/1b3bd88d-fd12-4f10-ae56-f10e33cfa06d_tn-80x80.jpg",name:"Galette des rois a la frangipane"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/9e/9eb860a1-02ba-4aa7-948e-f0a79d1de638_tn-80x80.jpg",name:"Pate a crepes simple"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/3d/3dd61e1c-578d-4f71-ad30-e271406e2ef9_tn-80x80.jpg",name:"Petits biscuits de noel"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/bc/bc6b2265-370a-4c7a-ad13-172c836a1435_tn-80x80.jpg",name:"La vraie tartiflette"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/df/df635210-09b6-43b0-b428-5d7199197960_tn-80x80.jpg",name:"Brownies"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/7c/7c4fa112-6cbc-4b9f-8cc0-d8fdf0275151_tn-80x80.jpg",name:"Chili con carne express"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/08/080ab4f5-bfb0-492c-842c-8b8aec9f5da3_tn-80x80.jpg",name:"Truffe geante de la mere anne"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/d5/d5b238bd-f443-47e8-8a59-8a209652145b_tn-80x80.jpg",name:"Cookies aux pepites de chocolat super moelleux"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/02/02aff180-7a16-44e0-8998-cb0feb8b32c3_tn-80x80.jpg",name:"Veloute de champignons"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/2c/2c800ed8-645e-4b0c-ab2e-d8cb8fc697b9_tn-80x80.jpg",name:"Madeleines au miel"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/22/22583d54-8ded-4b74-9f8e-f4733a8aff64_tn-80x80.jpg",name:"Tatin de magret de canard au foie gras"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/c8/c8e97e84-ad96-4f66-943a-1e2c0aaf2265_tn-80x80.jpg",name:"Tiramisu aux speculoos"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/d6/d6808d5e-c3c7-45a4-9739-399cf4066dda_tn-80x80.jpg",name:"Ramequins au chocolat aux coeurs fondants"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/6b/6b0da432-4496-4a49-8fde-fa0eba787ea9_tn-80x80.jpg",name:"Tarte au citron facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/0a/0a579752-42bf-45ad-a2cd-43373e64280a_tn-80x80.jpg",name:"Fondant au chocolat delicieux"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/df/dfa709ba-11a8-4cbf-a9ec-3cd99b4431fe_tn-80x80.jpg",name:"Genoise ultra-rapide et pourtant si aerienne ..."},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/00/0071c6d2-23ac-4f4c-aba7-19997e6c4aa0_tn-80x80.jpg",name:"Poulet basquaise"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/ac/ac6a3e9c-4d56-41b1-9fc8-453a662ac817_tn-80x80.jpg",name:"Gateau pommes, noix et cannelle"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/5d/5d8c374b-a186-4c4a-a3a8-2e84359eadb0_tn-80x80.jpg",name:"Poulet curry et oignons facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/c9/c903cfeb-c709-418c-b25e-a885327765c2_tn-80x80.jpg",name:"Tajine d'agneau aux pruneaux"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/e7/e70d4f2a-d48d-42e7-8ee3-fe1aba15d23a_tn-80x80.jpg",name:"Crepes a la regle de 3"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/59/592e6c02-08da-4077-87d0-d0f68dd1f4de_tn-80x80.jpg",name:"Tarte tatin"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/e2/e21e6284-2f01-485a-ace0-2524e40a23e9_tn-80x80.jpg",name:"Tarte frangipane aux poires et au chocolat"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/e6/e6ad5926-d4b4-4a60-bd21-a40588064ff6_tn-80x80.jpg",name:"Quiche sans pate"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/24/24db251a-1868-473a-825b-71a93e46578d_tn-80x80.jpg",name:"'the' tarte aux fraises"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/eb/eb238b5b-ab0e-4deb-bf41-9e1839379451_tn-80x80.jpg",name:"Muffins a la banane"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/58/58e8169c-5b03-4e48-8911-ecd6511a5249_tn-80x80.jpg",name:"La vraie moussaka grecque"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/7e/7e93be34-d057-4b35-9513-d3dab62655f9_tn-80x80.jpg",name:"Gaufres legeres"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/97/97376842-b9f8-4cdf-8a74-21f49f5b249e_tn-80x80.jpg",name:"Tarte tatin de legumes"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/37/370c5fe3-5d6e-47a8-9477-2df65c330da6_tn-80x80.jpg",name:"Charlotte facile poire chocolat"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/48/489b79c9-b459-4cd5-9e76-c7facfb526b7_tn-80x80.jpg",name:"Crevettes au curry express"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/1c/1c598dd3-224e-4b91-ab95-9a8a69398d28_tn-80x80.jpg",name:"Crumble simple"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/18/18556289-05a2-454d-becf-ffcc1d19fb99_tn-80x80.jpg",name:"Cake aux olives et lardons"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/f7/f7ec1e5a-1e82-48d7-9b7b-38c53cb60b24_tn-80x80.jpg",name:"Gratin dauphinois"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/1c/1cf76b7c-c632-405e-a9ad-6a210519a39a_tn-80x80.jpg",name:"Gateau d'anniversaire"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/4a/4af57f2a-e05d-435c-a906-ff469411352e_tn-80x80.jpg",name:"Couscous poulet et merguez facile"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/4e/4ef1a76d-00b6-4acb-a893-07e346fe9c73_tn-80x80.jpg",name:"Tarte tatin aux endives et chavignol"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/c1/c1082c61-5573-459d-a151-def2daff0de5_tn-80x80.jpg",name:"Roulade de saumon fume aux asperges, sauce aux crevettes et au chevre frais"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/dc/dc0746bf-20f4-4e99-8c66-a00c333caa41_tn-80x80.jpg",name:"Boeuf braise aux carottes"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/c6/c66a08b0-c676-4d05-b6c2-f5676c23fcbd_tn-80x80.jpg",name:"Roti de porc aux champignons et petits lardons"},{img:"http://images.marmitoncdn.org/recipephotos/multiphoto/69/696bbe14-9c08-4e6a-9ae3-5fc5a3fe9403_tn-80x80.jpg",name:"Poulet leger au fromage de chevre"}];
});


module.directive("deferShowDetail", function($compile) {
	var replacementMarkup = "<!-- defer-show-detail --\>";
	
	return {
		restrict: 'A',
		priority: 2000,
		compile: function(element, attributes) {
			var detailTemplate = $compile(element.find("div.detail").replaceWith(replacementMarkup));
			var elementSelector = element[0].nodeName + '.' + element.attr("class").trim().replace(" ", ".");
			
			$(element).parent().on("mouseenter", elementSelector, function(e) {
				var target = $(this).find("*").contents().filter(function(){
					return this.nodeType == 8 && this.textContent.trim() === "defer-show-detail";
				});
				
				if(target.length) {
					var scope = target.scope();
												
					detailTemplate(scope,
						function(detail) {
							target.replaceWith(detail);
						});
				}
			});
		}
	}
});
<!DOCTYPE html>
<html ng-app="compile-sample">

  <head>
    <meta charset="utf-8" />
    <title>AngularJS Plunker</title>
    <script>document.write('<base href="' + document.location + '" />');</script>
    <link rel="stylesheet" href="style.css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script data-require="angular.js@1.3.x" src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js" data-semver="1.3.4"></script>
    <script src="app.js"></script>
  </head>

  <body ng-controller="MainController">
  	<div>
  		<div ng-repeat="recipy in recipies" class="recipy" defer-show-detail>
  			<a href="#">
  				<div class="main">{{recipy.name}}</div>
  				<div class="detail">
  					<img ng-src="{{recipy.img}}" />
  				</div>
  			</a>
  		</div>
  	</div>
	</body>

</html>
a, a:hover {
	width: 100%;
	height: 100%;
	color: black;
	text-decoration: none;
}
		
a:hover .main {
	display: none;
}

a:hover .detail {
	display: block;
}
	
.recipy {
	width: 120px;
	height: 120px;
	border: 1px solid black;
	float: left;
}
		
.main {
	display: block;
	width: 100%;
	height: 100%;
}
		
.detail {
	display: none;
}
		
img {
	width: 120px;
	height: 120px;
}