I've added plunkr for your question. Please refer the following link http://plnkr.co/edit/n571gvlq7ptlbfJbOgaT?p=preview
Code
Main html
<!DOCTYPE html>
<html ng-app="docsIsolationExample">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js"></script>
<script src="example.js"></script>
</head>
<body>
<div ng-controller="Controller">
<my-customer ></my-customer>
</div>
</body>
</html>
Code will be put into the html views
<div class="fotorama" data-nav="thumbs" data-allowfullscreen="1" data-thumbheight="100" data-thumbwidth="100">
<img src="img/gamer_chick_800x600.jpg" alt="Image Alternative text" title="Gamer Chick" />
<img src="img/amaze_800x600.jpg" alt="Image Alternative text" title="AMaze" />
<img src="img/urbex_esch_lux_with_laney_and_laaaaag_800x600.jpg" alt="Image Alternative text" title="Urbex Esch/Lux with Laney and Laaaaag" />
<img src="img/food_is_pride_800x600.jpg" alt="Image Alternative text" title="Food is Pride" />
</div>
JS
angular.module('docsIsolationExample', [])
.controller('Controller', ['$scope', function($scope) {
$scope.naomi = { name: 'Naomi', address: '1600 Amphitheatre' };
$scope.vojta = { name: 'Vojta', address: '3456 Somewhere Else' };
}])
.directive('myCustomer', function() {
return {
restrict: 'E',
scope: {
customerInfo: '=info'
},
templateUrl: 'my-customer-plus-vojta.html'
};
});
You can use custom directive to add temple to the html page. Please refer the following link to know how to implement custom directive.
Creating a Directive that Wraps Other Elements