Skip to content
Browse files

step-7 transclude (solution)

  • Loading branch information...
1 parent 0752f0c commit e833a74836b0259cf0596daf5ebda7b21f7662ba @mhevery committed Sep 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/js/directives.js
View
3 app/js/directives.js
@@ -3,11 +3,12 @@
myApp.directive('zippy', function(){
return {
restrict: 'E',
+ transclude: true,
scope: { title:'@title' },
template:
'<div class="zippy {{state}}">' +
'<div class="title" ng-click="toggle()">{{title}}</div>' +
- '<div class="body"></div>' +
+ '<div class="body" ng-transclude></div>' +
'</div>',
link: function(scope, element, attrs) {

0 comments on commit e833a74

Please sign in to comment.
Something went wrong with that request. Please try again.