You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
angularjs-batarang/test/e2e/transclusion.html

31 lines
720 B
HTML

<!doctype html>
<html ng-app="testApp">
<head>
<script src="angular-expose-isolate-scopes.js"></script>
<script>
angular.module('testApp', [])
.controller('TestCtrl', function ($scope) {
$scope.person = 'bob';
$scope.other = 'bob';
})
.directive('myTransDir', function () {
return {
restrict: 'E',
template: '{{that}} pre-trans' +
'<div ng-transclude></div>' +
'post-trans {{that}}',
transclude: true,
scope: {
that: '=this'
}
};
});
</script>
</head>
<body ng-controller="TestCtrl">
<my-trans-dir this="person">
this is inside
</my-trans-dir>
</body>
</html>