Skip to content

Commit

Permalink
fix(directives/directive_provider): add missing transclude to @component
Browse files Browse the repository at this point in the history
 DDO
  • Loading branch information
Hotell committed Jan 10, 2016
1 parent 127df3e commit 4934dd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/core/directives/directive_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export class DirectiveProvider {
scope: {},
bindToController: this._createComponentBindings( inputs, attrs, outputs ),
controllerAs: 'ctrl',
link: this._createLink( type, metadata, lfHooks, requireMap )
link: this._createLink( type, metadata, lfHooks, requireMap ),
transclude: true
} as ng.IDirective;

if ( metadata.template && metadata.templateUrl ) {
Expand Down Expand Up @@ -371,6 +372,7 @@ function _preLinkFnFactory() {
* @param scope
* @param element
* @param ctrl
* @param implementsNgOnDestroy
* @param watchersToDispose
* @param observersToDispose
* @private
Expand Down
3 changes: 2 additions & 1 deletion test/core/directives/directive_provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ describe( `directives/directive_provider`, ()=> {
pre: (ddo.link as ng.IDirectivePrePost).pre,
post: (ddo.link as ng.IDirectivePrePost).post
},
template: `<div>Click me to attack!</div>`
template: `<div>Click me to attack!</div>`,
transclude: true
} );

const howShoulsLinkLookLike = {
Expand Down

0 comments on commit 4934dd8

Please sign in to comment.