Angular: Empty Fiddle

http://angularjs.org/

by bertuz

HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0-beta.13/angular.js"></script>
<div ng-controller="MyCtrl">
  Hello, {{name}}!
    
    <ng-include src="'templatse.html'"> </ng-include>
</div>

<!-- template -->
<script type="text/ng-template" id="template.html">
    inclusion
</script>

JavaScript

var myApp = angular.module('myApp',[]);

//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});

myApp.controller('MyCtrl', ['$scope', function($scope) {
    $scope.name = 'Matteo';
    
    $scope.$on('$includeContentError', function() {
        alert('something went wrong');
    });
}]);